Udostępnij za pośrednictwem


Figures

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the collection of PathFigure objects that describe the path's contents.

<PathGeometry>
  oneOrMorePathFigures
</PathGeometry>
value = object.Figures
object.Figures = value

XAML Values

Value

Description

oneOrMorePathFigures

One or more PathFigure object elements.

Property Value

Type: PathFigureCollection

A collection of PathFigure objects that describe the path's contents. Each PathFigure describes a shape.

This property is read/write. The default value is an empty collection.

Managed Equivalent

Figures

Remarks

The XAML syntax for the Figures property is an example of an implicit collection syntax, where you can omit the PathFigureCollection object element and the <PathGeometry.Figures> property element. Instead, you generally include one or more PathFigure object elements as child elements of a PathGeometry. Explicitly including a PathFigureCollection 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. Including the PathGeometry.Figures property element might also be useful for markup clarity, because of the nested figures and segment collections found in a typical complex PathGeometry.

Applies To

PathGeometry

See Also

Reference