Number of vertices in this polygon.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax
Property Value
Type: Int32Events
| Event Type | Reason |
|---|---|
| CogPolygon Changed | Fires when the number of vertices changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The number of vertices is < 0. |
Remarks
Sets or gets the number of vertices in this polygon. The following table describes what happens when you set the number of vertices.
Changing the number of verticesOperationEffectNew value > current NumVerticesNew vertices with coordinates (0,0) are added to the end of the list of vertices.New value < current NumVerticesExisting vertices are removed from the end of the list of vertices.New value = 0All vertices removed.Default Value: 0
See Also