Part Class 
Namespace: Esri.ArcGISRuntime.Geometry
The Part type exposes the following members.
Name  Description  

Part(SpatialReference) 
Initializes a new instance of the Part class with a specified spatial reference.  
Part(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
 
Part(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

Name  Description  

Count  Gets the number of segments contained in the part.  
EndPoint 
Returns the end point of the last segment in the part. Returns NULL if the collection is empty.
 
IsEmpty  Indicates if the part contains no segments.  
IsReadOnly  Gets the value indicating whether the part is readonly.  
Item  Gets or sets the segment at a specified segment index.  
PointCount  Returns the count of points in the part.  
Points  Returns all the points that are vertexes of the part.  
SegmentCount  Returns the count of segments in the part.  
SpatialReference  Retrieve the spatial reference for the immutable part.  
StartPoint 
Returns the start point of the first segment in the part. Returns NULL if the collection is empty.

Name  Description  

Add  Add segment to the end of the part.  
AddPoint(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.
 
AddPoint(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.
 
AddPoint(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.
 
AddPoints 
Adds a range of points to create LineSegments in this part.
 
AddSegments  Adds segments to the end of the part.  
Clear  Remove all segments from the part.  
Contains  Determines whether the Segment is in the Part.  
CopyTo  Copies a collection of Segments to this instance.  
GetEndPointIndexFromSegmentIndex 
For a segment at a specified segment index the method returns the point index of the segment's end point.
 
GetEnumerator  Returns an enumerator that iterates through the Segment collection.  
GetPoint  Returns a point at a specified point index.  
GetSegmentIndexFromEndPointIndex 
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.
 
GetSegmentIndexFromPointIndex 
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.
 
GetSegmentIndexFromStartPointIndex 
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.
 
GetStartPointIndexFromSegmentIndex 
For a segment at a specified segment index the method returns the point index of the segment's start point.
 
IndexOf  Determines the index of a specific Segment in the Part.  
Insert  Inserts a segment into the part at the specified index.  
InsertPoint(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.
 
InsertPoint(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.
 
InsertPoint(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.
 
Remove  Remove the given segment from the part.  
RemoveAt  Remove the given segment from the part.  
RemovePoint 
Removes a point from the part. Segments connecting to this point will be removed and the gap filled with a
new line segment.
 
SetPoint 
Replace a point in the part at the specified point index. Segments that use this point will be changed.
