selectMidVertex method
Selects the mid-vertex with the specified indices.
Mid-vertices do not exist in the GeometryEditor.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 GeometryEditor.selectedElement.
Parameters:
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 - ArcGISPoint and Multipoint.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 ArcGISPoint geometries.
Implementation
void selectMidVertex({
required int partIndex,
required int segmentIndex,
}) {
_withThrowingErrorHandler((errorHandler) {
runtimecore.RT_GeometryEditor_selectMidVertex(
_handle,
partIndex,
segmentIndex,
errorHandler,
);
});
}