PathSegmentCollection Object

Represents a collection of PathSegment objects that can be individually accessed by index.

XAML
<PathSegmentCollection ...>
  oneOrMorePathSegments
</PathSegmentCollection ...>
Scripting
To create an object using scripting, see CreateFromXAML.

XAML Values

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.

Properties

Count, Name

Methods

Add, Clear, Equals, FindName, GetHost, GetItem, GetValue, Insert, Remove, RemoveAt, SetValue

Remarks

PathSegmentCollection is used by the Segments property to store PathSegment information.

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:

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.)

See Also

Silverlight Geometries Overview
ArcSegment
BezierSegment
Collection
LineSegment
PathSegment
PathFigure
PolyBezierSegment
PolyQuadraticBezierSegment
QuadraticBezierSegment