Class PdfPath
A path is made up of one or more disconnected subpaths, each comprising a sequence of connected segments. The topology of the path is unrestricted: it may be concave or convex, may contain multiple subpaths representing disjoint areas, and may intersect itself in arbitrary ways.
A path shall be composed of straight and curved line segments, which may connect to one another or may be disconnected.
public class PdfPath : List<PdfSubpath>, IList<PdfSubpath>, ICollection<PdfSubpath>, IList, ICollection, IReadOnlyList<PdfSubpath>, IReadOnlyCollection<PdfSubpath>, IEnumerable<PdfSubpath>, IEnumerable
- Inheritance
-
PdfPath
- Implements
- Inherited Members
- Extension Methods
Constructors
PdfPath()
public PdfPath()
Properties
FillColor
The fill color.
public IColor FillColor { get; }
Property Value
FillingRule
Rules for determining which points lie inside/outside the path.
public FillingRule FillingRule { get; }
Property Value
IsClipping
Returns true if this is a clipping path.
public bool IsClipping { get; }
Property Value
IsFilled
Returns true if the path is filled.
public bool IsFilled { get; }
Property Value
IsStroked
Returns true if the path is stroked.
public bool IsStroked { get; }
Property Value
LineCapStyle
The cap style to be used for stroked lines.
public LineCapStyle LineCapStyle { get; }
Property Value
LineDashPattern
The pattern to be used for stroked lines.
public LineDashPattern? LineDashPattern { get; }
Property Value
LineJoinStyle
The join style to be used for stroked lines.
public LineJoinStyle LineJoinStyle { get; }
Property Value
LineWidth
Thickness in user space units of path to be stroked.
public decimal LineWidth { get; }
Property Value
StrokeColor
The stroke color.
public IColor StrokeColor { get; }
Property Value
Methods
GetBoundingRectangle()
Gets a PdfRectangle which entirely contains the geometry of the defined path.
public PdfRectangle? GetBoundingRectangle()
Returns
- PdfRectangle?
For paths which don't define any geometry this returns null.
SetClipping(FillingRule)
Set the clipping mode for this path and IsClipping to true.
IsFilled and IsStroked flags will be set to false.
public void SetClipping(FillingRule fillingRule)
Parameters
fillingRule
FillingRule
SetFilled(FillingRule)
Set the filling rule for this path and IsFilled to true.
public void SetFilled(FillingRule fillingRule)
Parameters
fillingRule
FillingRule
SetStroked()
Set IsStroked to true.
public void SetStroked()