selectVertex method

void selectVertex({
  1. required int partIndex,
  2. required int vertexIndex,
})

Selects the vertex with the specified indices.

When a vertex is selected it can be edited while all other vertices of the geometry are unchanged. For example, you can move only the selected vertex interactively by dragging, or call GeometryEditor.moveSelectedElement or GeometryEditor.moveSelectedElementWithDelta to move the selected vertex programmatically.

When a vertex is selected, a GeometryEditorVertex is returned from GeometryEditor.selectedElement.

Parameters:

  • partIndex — The index of the part that contains the vertex (point)) to be selected, within the geometry editor's Multipart geometry. Use a value of 0 for ArcGISPoint and Multipoint (non-multipart geometries).
  • vertexIndex — The index of the vertex (point) to be selected, 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 selectVertex({
  required int partIndex,
  required int vertexIndex,
}) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_GeometryEditor_selectVertex(
      _handle,
      partIndex,
      vertexIndex,
      errorHandler,
    );
  });
}