Represents a collection of PathSegment objects that can be individually accessed by index.
To create an object using scripting, see CreateFromXAML.
|oneOrMorePathSegments||One or more object elements that derive from PathSegment. These can be one or more of the following: ArcSegment, BezierSegment, LineSegment, PolyBezierSegment, PolyQuadraticBezierSegment, QuadraticBezierSegment.|
PathSegmentCollection defines no methods or properties beyond the basic Collection methods and properties. Methods such as Add or GetItem will expect or return objects that are of type PathSegment. PathSegment itself is an abstract type, so this generally means that the items in a collection are one of the following:
- PolyLineSegment Object
- QuadraticBezierSegment Object
The XAML syntax for properties that use a PathSegmentCollection is an example of an implicit collection syntax, where you can omit an actual PathSegmentCollection object element, as well as the <PathFigure.Segments> property element. Instead, you generally include one or more of the PathSegment derived types as child elements of a PathFigure. For more information about XAML implicit collection syntax, see XAML Syntax Overview. (Explicitly including a PathSegmentCollection object element is permissible XAML syntax, and might be useful if you intend to name the collection in XAML and manipulate its contents through script later.)