• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Subpath

A subpath within a path (spec §8.5.2). A subpath is a connected sequence of path segments, optionally closed.

Inheritance
object
Subpath
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class Subpath

Properties

IsClosed

Gets whether this subpath is closed (ends with a close-subpath operator).

Declaration
public bool IsClosed { get; }
Property Value
Type Description
bool

Points

Gets all points referenced by segments in this subpath.

Declaration
public IEnumerable<PdfPoint> Points { get; }
Property Value
Type Description
IEnumerable<PdfPoint>

Segments

Gets the segments in this subpath.

Declaration
public IReadOnlyList<PathSegment> Segments { get; }
Property Value
Type Description
IReadOnlyList<PathSegment>

StartPoint

Gets the start point of this subpath (the first move-to point).

Declaration
public PdfPoint? StartPoint { get; }
Property Value
Type Description
PdfPoint?

Methods

AddRectangle(PdfPoint, PdfSize)

Add a rectangle to the subpath.

Declaration
public void AddRectangle(PdfPoint bottomLeft, PdfSize size)
Parameters
Type Name Description
PdfPoint bottomLeft
PdfSize size

BezierTo(PdfPoint, PdfPoint, PdfPoint)

Add a cubic Bezier curve to the given end point.

Declaration
public void BezierTo(PdfPoint cp1, PdfPoint cp2, PdfPoint end)
Parameters
Type Name Description
PdfPoint cp1
PdfPoint cp2
PdfPoint end

Clone()

Creates a deep copy of this subpath.

Declaration
public Subpath Clone()
Returns
Type Description
Subpath

Close()

Close the subpath with a close-subpath segment.

Declaration
public void Close()

LineTo(PdfPoint)

Add a line segment to the given point.

Declaration
public void LineTo(PdfPoint point)
Parameters
Type Name Description
PdfPoint point

MoveTo(PdfPoint)

Add a move-to segment that begins a new subpath at the given point.

Declaration
public void MoveTo(PdfPoint point)
Parameters
Type Name Description
PdfPoint point

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()

Transform(PdfMatrix)

Transform all segments in this subpath by the given matrix.

Declaration
public Subpath Transform(PdfMatrix matrix)
Parameters
Type Name Description
PdfMatrix matrix
Returns
Type Description
Subpath
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX