Click or drag to resize

Part Class

Collection of Segment classes.
Inheritance Hierarchy
SystemObject
  Esri.ArcGISRuntime.GeometryPart

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public class Part : IList<Segment>, ICollection<Segment>, 
	IEnumerable<Segment>, IEnumerable

The Part type exposes the following members.

Constructors
  NameDescription
Public methodPart(SpatialReference)
Initializes a new instance of the Part class with a specified spatial reference.
Public methodPart(IEnumerableMapPoint, SpatialReference)
Initializes a new instance of the Part class. The spatial reference is checked against the input points and it is also used if the inputs have a null SpatialReference
Public methodPart(IEnumerableSegment, SpatialReference)
Initializes a new instance of the Part class. The spatial reference is checked against the input points and it is also used if the inputs have a null SpatialReference
Top
Properties
  NameDescription
Public propertyCount
Gets the number of segments contained in the part.
Public propertyEndPoint
Returns the end point of the last segment in the part. Returns NULL if the collection is empty.
Public propertyIsEmpty
Indicates if the part contains no segments.
Public propertyIsReadOnly
Gets the value indicating whether the part is read-only.
Public propertyItem
Gets or sets the segment at a specified segment index.
Public propertyPointCount
Returns the count of points in the part.
Public propertyPoints
Returns all the points that are vertexes of the part.
Public propertySegmentCount
Returns the count of segments in the part.
Public propertySpatialReference
Retrieve the spatial reference for the immutable part.
Public propertyStartPoint
Returns the start point of the first segment in the part. Returns NULL if the collection is empty.
Top
Methods
  NameDescription
Public methodAdd
Add segment to the end of the part.
Public methodAddPoint(MapPoint)
Add a new point to the end of the part. A new line segment will be added to connect the new point to the previous one.
Public methodAddPoint(Double, Double)
Add a new point to the end of the part by specifying the points x,y coordinates. A new line segment will be added to connect the new point to the previous one.
Public methodAddPoint(Double, Double, Double)
Add a new point to the end of the part by specifying the points x,y,z coordinates. A new line segment will be added to connect the new point to the previous one.
Public methodAddPoints
Adds a range of points to create LineSegments in this part.
Public methodAddSegments
Adds segments to the end of the part.
Public methodClear
Remove all segments from the part.
Public methodContains
Determines whether the Segment is in the Part.
Public methodCopyTo
Copies a collection of Segments to this instance.
Public methodGetEndPointIndexFromSegmentIndex
For a segment at a specified segment index the method returns the point index of the segment's end point.
Public methodGetEnumerator
Returns an enumerator that iterates through the Segment collection.
Public methodGetPoint
Returns a point at a specified point index.
Public methodGetSegmentIndexFromEndPointIndex
Converts from a point index to a segment index that uses the given point as an end point. If the point is not an end point then a value equivalent to -1 value is returned.
Public methodGetSegmentIndexFromPointIndex
Converts from a point index to a segment index of the start point and another segment index containing the end point. If the point is not a start or end point a value equivalent to -1 is set.
Public methodGetSegmentIndexFromStartPointIndex
Converts from a point index to a segment index that uses the given point as a start point. If the point is not a start point then a value equivalent to -1 value is returned.
Public methodGetStartPointIndexFromSegmentIndex
For a segment at a specified segment index the method returns the point index of the segment's start point.
Public methodIndexOf
Determines the index of a specific Segment in the Part.
Public methodInsert
Inserts a segment into the part at the specified index.
Public methodInsertPoint(Int32, MapPoint)
Inserts a point into the part at the specified point index. Line segments will be added to connect the point to adjacent segments.
Public methodInsertPoint(Int32, Double, Double)
Inserts a point specified by its x,y coordinate into the part at the specified point index. Line segments will be added to connect the point to adjacent segments.
Public methodInsertPoint(Int32, Double, Double, Double)
Inserts a point specified by its x,y,z coordinate into the part at the specified point index. Line segments will be added to connect the point to adjacent segments.
Public methodRemove
Remove the given segment from the part.
Public methodRemoveAt
Remove the given segment from the part.
Public methodRemovePoint
Removes a point from the part. Segments connecting to this point will be removed and the gap filled with a new line segment.
Public methodSetPoint
Replace a point in the part at the specified point index. Segments that use this point will be changed.
Top
See Also