public ReadOnlyCollection<PathSegment> Segments { get; }Public ReadOnly Property Segments As ReadOnlyCollection(Of PathSegment)
Getpublic:
property ReadOnlyCollection<PathSegment^>^ Segments {
ReadOnlyCollection<PathSegment^>^ get ();
}member Segments : ReadOnlyCollection<PathSegment> with getEvery segment has a start point and an end point. If the StartPoint of a PathSegment is not the same as the EndPoint of the previous segment, then a straight line is assumed between these two points.
If the IsClosed property is true, then a straight line is also assumed between the EndPoint of the last segment and the StartPoint of the first segment, if they are not the same.
You can also use the GetFlattenedPoints method to get all the points as a polyline that define this figure, including those connecting segments.