Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PathGeometry.Figures Property

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

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
public PathFigureCollection Figures { get; set; }
<PathGeometry>
  <PathGeometry.Figures>
    oneOrMoreFigures
  </PathGeometry.Figures>
</PathGeometry>
<PathGeometry Figures="moveAndDrawCommands"/>

XAML Values

moveAndDrawCommands

One or more move and draw commands. See Path Markup Syntax.

oneOrMoreFigures

System.Windows.Media.PathFigure

One or more PathFigure objects.

Property Value

Type: System.Windows.Media.PathFigureCollection
A collection of PathFigure objects that describe the contents of a path. Each individual PathFigure describes a shape.

Dependency property identifier field: FiguresProperty

The XAML syntax for Figures is an example of an implicit collection syntax, where you can omit the PathFigureCollection object element, as well as the PathGeometry.Figures property element. Instead, you generally include one or more PathFigure object elements as child elements of a PathGeometry. For more information about XAML implicit collection syntax, see XAML Overview.

NoteNote:

Explicitly including a PathFigureCollection object element is permissible XAML syntax, and it 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 Segments collections found in a typical complex PathGeometry.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.