Class PdfSubpath.Line
Draw a straight line between two points.
public class PdfSubpath.Line : PdfSubpath.IPathCommand
- Inheritance
-
PdfSubpath.Line
- Implements
- Inherited Members
Constructors
Line(PdfPoint, PdfPoint)
Create a new PdfSubpath.Line.
public Line(PdfPoint from, PdfPoint to)
Parameters
Properties
From
The start of the line.
public PdfPoint From { get; }
Property Value
Length
Length of the line.
public double Length { get; }
Property Value
To
The end of the line.
public PdfPoint To { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetBoundingRectangle()
public PdfRectangle? GetBoundingRectangle()
Returns
GetHashCode()
public override int GetHashCode()
Returns
WriteSvg(StringBuilder, double)
public void WriteSvg(StringBuilder builder, double height)
Parameters
builder
StringBuilderheight
double