The X-coordinate of the vertex with the given index.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- index
- Type: System Int32
Index of the vertex. Must be >= 0 and < NumVertices.
Return Value
Type: DoubleEvents
| Event Type | Reason |
|---|---|
| CogPolygon Changed | Fires when the x-coordinate changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | NumVertices < 1. |
| ArgumentException | index < 0 or index > (NumVertices−1) |
Remarks
Sets or gets the x-coordinate of the vertex with the given index.
Use SetVertex(Int32, Double, Double) and GetVertex(Int32, Double , Double ) to set or get both the x- and y-coordinate at once.
See Also