selectPart method
- required int partIndex,
Selects the part with the specified index.
When a part of a polygon or polyline geometry is selected, a GeometryEditorPart is returned from GeometryEditor.selectedElement. If the polygon or polyline has only one part (ImmutablePart), then a GeometryEditorGeometry with a shape equivalent to the entire geometry is returned from GeometryEditor.selectedElement instead, which provides immediate access to the extent (Geometry.extent) and can be directly used in other geometry operations. If the current GeometryEditor.geometry is an ArcGISPoint or Multipoint, the entire geometry is selected.
When a part of a Polygon or Polyline (Multipart) geometry is selected it can be edited separately from the other parts of the geometry. For example, you can move only the selected part interactively by dragging, or call GeometryEditor.moveSelectedElement or GeometryEditor.moveSelectedElementWithDelta to move only the selected part programmatically.
Parameters:
partIndex
— The index of the part in the geometry editor's Multipart geometry to be selected. Use a value of 0 for Multipoint geometries.
Implementation
void selectPart({
required int partIndex,
}) {
_withThrowingErrorHandler((errorHandler) {
runtimecore.RT_GeometryEditor_selectPart(
_handle,
partIndex,
errorHandler,
);
});
}