Class XpsPath
Namespace: Aspose.Page.XPS.XpsModel
Assembly: Aspose.Page.dll (25.1.2)
Class incapsulating Path element features. This element is the sole means of adding vector graphics and images to a fixed page. It defines a single vector graphic to be rendered on a page.
public sealed class XpsPath : XpsContentElement, IEnumerable<xpscontentelement>, IEnumerable
Inheritance
object ← XpsObject ← XpsElement ← XpsHyperlinkElement ← XpsContentElement ← XpsPath
Implements
IEnumerable<xpscontentelement>, IEnumerable
Inherited Members
XpsContentElement.RenderTransform, XpsContentElement.Clip, XpsContentElement.Opacity, XpsContentElement.OpacityMask, XpsHyperlinkElement.HyperlinkTarget, XpsElement.GetEnumerator(), XpsElement.this[int], XpsElement.Count, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Data
Returns/sets the geometry of the path.
public XpsPathGeometry Data { get; set; }
Property Value
Fill
Returns/sets the brush used to paint the geometry specified by the Data property of the path.
public XpsBrush Fill { get; set; }
Property Value
Stroke
Returns/sets the brush used to draw the stroke.
public XpsBrush Stroke { get; set; }
Property Value
StrokeDashArray
Returns/sets the array specifying the length of dashes and gaps of the outline stroke.
public float[] StrokeDashArray { get; set; }
Property Value
float[]
StrokeDashCap
Returns/sets the value specifying how the ends of each dash are drawn.
public XpsDashCap StrokeDashCap { get; set; }
Property Value
StrokeDashOffset
Returns/sets the start point for repeating the dash array pattern. If this value is omitted, the dash array aligns with the origin of the stroke.
public float StrokeDashOffset { get; set; }
Property Value
StrokeEndLineCap
Returns/sets the value defining the shape of the end of the last dash in a stroke.
public XpsLineCap StrokeEndLineCap { get; set; }
Property Value
StrokeLineJoin
Returns/sets the value defining the shape of the beginning of the first dash in a stroke.
public XpsLineJoin StrokeLineJoin { get; set; }
Property Value
StrokeMiterLimit
Returns/sets the ratio between the maximum miter length and half of the stroke thickness.
This value is significant only if the StrokeLineJoin
attribute specifies Miter
.
public float StrokeMiterLimit { get; set; }
Property Value
StrokeStartLineCap
Returns/sets the value defining the shape of the beginning of the first dash in a stroke.
public XpsLineCap StrokeStartLineCap { get; set; }
Property Value
StrokeThickness
Returns/sets the thickness of a stroke, in units of the effective coordinate space (includes the path’s render transform). The stroke is drawn on top of the boundary of the geometry specified by the Path element’s Data property. Half of the StrokeThickness extends outside of the geometry specified by the Data property and the other half extends inside of the geometry.
public float StrokeThickness { get; set; }
Property Value
Methods
Clone()
Clones this path.
public XpsPath Clone()
Returns
Clone this path. </xpscontentelement>