Method SelectMidVertex
SelectMidVertex(long, long)
Selects the mid-vertex with the specified indices.
Declaration
public void SelectMidVertex(long partIndex, long segmentIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| long | partIndex | The index of the part in the geometry editor's Multipart geometry that contains the mid-vertex to be selected. Use a value of 0 for non-multipart geometry types - Point and Multipoint. |
| long | segmentIndex | The index of segment that the mid-vertex to be selected lies on, within the given part of the geometry editor's Multipart geometry, or within the Multipoint geometry. Use a value of 0 for Point geometries. |
Remarks
Mid-vertices do not exist in the Geometry. They exist only in the display to serve as a visual cue that new vertices can be inserted between existing vertices. Since they do not exist in the geometry, mid-vertices cannot be programmatically moved or deleted. They can be used to insert a new vertex interactively.
When a mid-vertex is selected, a GeometryEditorMidVertex is returned from SelectedElement.
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The GeometryEditor must be started in order to select a mid-vertex. -OR- Mid-vertices are not shown for the current GeometryType and therefore cannot be selected. |
| ArgumentOutOfRangeException | The given indices must be within range for the current Geometry. |
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.3 - 200.8 |
| .NET | 200.3 - 300.0 |
| .NET Windows | 200.3 - 300.0 |
| .NET Android | 200.3 - 300.0 |
| .NET iOS | 200.3 - 300.0 |
| .NET Framework | 200.3 - 200.8 |
| UWP | 200.3 - 200.8 |