Show / Hide Table of Contents

Class PathGeometry

Represents a complex shape that may be composed of arcs, curves, ellipses, lines, and rectangles.

Inheritance
System.Object
DependencyObject
Geometry
PathGeometry
Inherited Members
Geometry.Empty
Geometry.TransformProperty
Geometry.Transform
Geometry.StandardFlatteningTolerance
Geometry.Bounds
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class PathGeometry : Geometry, IDependencyObject

Constructors

| Improve this Doc View Source

PathGeometry()

Initializes a new instance of the PathGeometry class.

Declaration
public PathGeometry()
| Improve this Doc View Source

PathGeometry(IEnumerable<PathFigure>)

Initializes a new instance of the PathGeometry class with the specified Figures.

Declaration
public PathGeometry(IEnumerable<PathFigure> figures)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PathFigure> figures

The Figures of the PathGeometry which describes the contents of the Path.

Fields

| Improve this Doc View Source

FiguresProperty

Identifies the Figures dependency property.

Declaration
public static readonly DependencyProperty FiguresProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

FillRuleProperty

Identifies the FillRule dependency property.

Declaration
public static readonly DependencyProperty FillRuleProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Figures

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

Declaration
public PathFigureCollection Figures { get; set; }
Property Value
Type Description
PathFigureCollection

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

| Improve this Doc View Source

FillRule

Gets or sets a value that determines how the intersecting areas contained in the PathGeometry are combined.

Declaration
public FillRule FillRule { get; set; }
Property Value
Type Description
FillRule

A FillRule enumeration value that indicates how the intersecting areas of the PathGeometry are combined. The default is EvenOdd.

Methods

| Improve this Doc View Source

ToString()

Returns a string representation of this PathGeometry.

Declaration
public override string ToString()
Returns
Type Description
System.String

A string representation of this PathGeometry.

Overrides
System.Object.ToString()

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source