Show / Hide Table of Contents

Method SelectPart

SelectPart(Int64)

Selects the part with the specified index.

Declaration
public void SelectPart(long partIndex)
Parameters
Type Name Description
System.Int64 partIndex

The index of the part in the geometry editor's Multipart geometry to be selected. Use a value of 0 for Multipoint geometries.

Remarks

When a part of a polygon or polyline geometry is selected, a GeometryEditorPart is returned from SelectedElement. If the polygon or polyline has only one ReadOnlyPart, then a GeometryEditorGeometry with a shape equivalent to the entire geometry is returned from SelectedElement instead, which provides immediate access to the extent (Extent) and can be directly used in other geometry operations. If the current Geometry is a System.Drawing.Point 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 MoveSelectedElement(MapPoint) or MoveSelectedElement(Double, Double) to move only the selected part programmatically.

See Also
AllowPartSelection
ClearSelection()
SelectVertex(Int64, Int64)
SelectMidVertex(Int64, Int64)
SelectGeometry()

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.3 - 200.8
.NET200.3 - 200.8
.NET Windows200.3 - 200.8
.NET Android200.3 - 200.8
.NET iOS200.3 - 200.8
.NET Framework200.3 - 200.8
UWP200.3 - 200.8
In This Article
Back to top Copyright © 2022 Esri.