Type Property

Measurement Studio User Interface

Type Property

Syntax

CWShape.Type

Data Type

CWShapeTypes

You can use the following constants with this data type:

  • cwShapeArc–Specifies an arc.
  • cwShapeImage–Specifies an image.
  • cwShapeLine–Specifies a line.
  • cwShapeMinMaxRegion–Specifies a minimum-maximum region.
  • cwShapeNone–Specifies no shape.
  • cwShapeOval–Specifies an oval.
  • cwShapePoint–Specifies a point.
  • cwShapePolygon–Specifies a polygon.
  • cwShapeRectangle–Specifies a rectangle.
  • cwShapeRegion–Specifies a region.

Purpose

Specifies the type of shape.

Example

Dim shape As CWShape
...
'Specify a triangle
shape.Type = cwShapePolygon
shape.XCoordinates = Array(1, 2, 3)
shape.YCoordinates = Array(1, 2, 1)
'Specify a rectangle from (1,1) to (2,2)
shape.Type = cwShapeRectangle
shape.XCoordinates = Array(1, 2)
shape.YCoordinates = Array(1, 2)
'Specify a quarter turn arc of radius 3 centered at (1,1)
shape.Type = cwShapeArc
shape.XCoordinates = Array(1, 3, 0, 0)
shape.YCoordinates = Array(1, 3, 0, 90)
'Specify the region x > 5
shape.Type = cwShapeMinMaxRegion
shape.XCoordinates = Array(5)
shape.YCoordinates = Array()

See Also

XCoordinates

YCoordinates