Class XpsPathGeometry

Class XpsPathGeometry

Namespace: Aspose.Page.XPS.XpsModel
Assembly: Aspose.Page.dll (25.1.2)

Class incapsulating PathGeometry property element features. This element contains a set of path figures specified either with the Figures attribute or with a child PathFigure element.

public sealed class XpsPathGeometry : XpsArray<xpspathfigure>

Inheritance

objectXpsObjectXpsArray<xpspathfigure>XpsPathGeometry

Inherited Members

XpsArray<xpspathfigure>.Add(XpsPathFigure), XpsArray<xpspathfigure>.Remove(XpsPathFigure), XpsArray<xpspathfigure>.Insert(int, XpsPathFigure), XpsArray<xpspathfigure>.RemoveAt(int), XpsArray<xpspathfigure>.this[int], XpsArray<xpspathfigure>.Count, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

FillRule

Returns/sets the value specifying how the intersecting areas of geometric shapes are combined to form a region.

public XpsFillRule FillRule { get; set; }

Property Value

XpsFillRule

PathFigures

Returns list of child path figures.

public List<xpspathfigure> PathFigures { get; }

Property Value

List<XpsPathFigure&gt;

Transform

Returns/sets the affine transformation matrix establishing the local matrix transformation that is applied to all child and descendant elements of the path geometry before it is used for filling, clipping, or stroking.

public XpsMatrix Transform { get; set; }

Property Value

XpsMatrix

Methods

AddSegment(XpsPathSegment)

Adds a path segment to the list of child segments of the last pah figure.

public XpsPathSegment AddSegment(XpsPathSegment segment)

Parameters

segment XpsPathSegment

The path segment to be added.

Returns

XpsPathSegment

Added path segment.

Clone()

Clones this path geometry.

public XpsPathGeometry Clone()

Returns

XpsPathGeometry

Clone of this path geometry.

InsertSegment(int, XpsPathSegment)

Inserts a path segment to the list of child segments of the last path figure at index position.

public XpsPathSegment InsertSegment(int index, XpsPathSegment segment)

Parameters

index int

Position at which a segment should be inserted.

segment XpsPathSegment

A path segment to be inserted.

Returns

XpsPathSegment

Inserted path segment.

RemoveSegment(XpsPathSegment)

Removes a path segment from the list of child segments of the last path figure.

public XpsPathSegment RemoveSegment(XpsPathSegment segment)

Parameters

segment XpsPathSegment

The path segment to be removed.

Returns

XpsPathSegment

Removed path segment.

RemoveSegmentAt(int)

Removes a path segment from the list of child segments of the last path figure at index position.

public XpsPathSegment RemoveSegmentAt(int index)

Parameters

index int

Position at which a path segment should be removed.

Returns

XpsPathSegment

Removed path segment. </xpspathfigure></xpspathfigure></xpspathfigure></xpspathfigure></xpspathfigure></xpspathfigure></xpspathfigure>

 English