SetCoordinates Method

Measurement Studio User Interface

SetCoordinates Method

Syntax

CWShape.SetCoordinates XCoordinates, YCoordinates

Purpose

Sets the X and Y coordinates of the shape.

Remarks

The SetCoordinates method assigns arrays of values to specify the coordinates of the shape.

For cwShapePoint, cwShapeLine, cwShapePolygon, and cwShapeRegion, the pairs of X and Y coordinates are used as vertices.

For cwShapeRectangle, cwShapeOval, and cwShapeImage, the first two pairs of X and Y coordinates are used as corner vertices.

For cwShapeArc, the first X and Y coordinates are used as the center of the rotation of the arc. The second X and Y coordinates are used as the major and minor axes lengths. If specified, the third X coordinate is used as the rotation, in degrees, of the arc. If specified, the fourth X and Y coordinates are used as the starting and ending angles of the arc.

For cwMinMaxRegion, the first X coordinate, if specified, is used as an X minimum. If specified, the first Y coordinate is used as a Y minimum. If specified, the second X coordinate is used as an X maximum. If specified, the second Y coordinate is used as a Y maximum.

Parameters

XCoordinates As Variant

The X coordinates of the shape.

YCoordinates As Variant

The Y coordinates of the shape.

See Also

XCoordinates

YCoordinates