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
object ← XpsObject ← XpsArray<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
PathFigures
Returns list of child path figures.
public List<xpspathfigure> PathFigures { get; }
Property Value
List<XpsPathFigure>
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
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
Added path segment.
Clone()
Clones this path geometry.
public XpsPathGeometry Clone()
Returns
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
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
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
Removed path segment. </xpspathfigure></xpspathfigure></xpspathfigure></xpspathfigure></xpspathfigure></xpspathfigure></xpspathfigure>