Class PathGeometry
[Guid("2cd906a5-12e2-11dc-9fed-001143a055f9")]
public class PathGeometry : Geometry
- Inheritance
-
PathGeometry
- Derived
- Inherited Members
Constructors
PathGeometry(Factory)
Creates an empty PathGeometry.
public PathGeometry(Factory factory)
Parameters
PathGeometry(nint)
public PathGeometry(nint nativePtr)
Parameters
nativePtr
nint
Properties
FigureCount
Retrieves the number of figures in the path geometry.
public int FigureCount { get; }
Property Value
SegmentCount
Retrieves the number of segments in the path geometry.
public int SegmentCount { get; }
Property Value
Methods
Open()
Retrieves the geometry sink that is used to populate the path geometry with figures and segments.
public GeometrySink Open()
Returns
- GeometrySink
When this method returns, geometrySink contains the address of a reference to the geometry sink that is used to populate the path geometry with figures and segments. This parameter is passed uninitialized.
Remarks
Because path geometries are immutable and can only be populated once, it is an error to call Open on a path geometry more than once.
Note that the fill mode defaults to D2D1_FILL_MODE_ALTERNATE. To set the fill mode, call SetFillMode before the first call to BeginFigure. Failure to do so will put the geometry sink in an error state.
Stream(GeometrySink)
Copies the contents of the path geometry to the specified GeometrySink.
public void Stream(GeometrySink geometrySink)
Parameters
geometrySink
GeometrySinkNo documentation.
Operators
explicit operator PathGeometry(nint)
public static explicit operator PathGeometry(nint nativePtr)
Parameters
nativePtr
nint