Struct PdfLine
A line in a PDF file.
public struct PdfLine
- Inherited Members
Remarks
PDF coordinates are defined with the origin at the lower left (0, 0). The Y-axis extends vertically upwards and the X-axis horizontally to the right. Unless otherwise specified on a per-page basis, units in PDF space are equivalent to a typographic point (1/72 inch).
Constructors
PdfLine(double, double, double, double)
Create a new PdfLine.
public PdfLine(double x1, double y1, double x2, double y2)
Parameters
x1
doubleThe x coordinate of the first point on the line.
y1
doubleThe y coordinate of the first point on the line.
x2
doubleThe x coordinate of the second point on the line.
y2
doubleThe y coordinate of the second point on the line.
PdfLine(PdfPoint, PdfPoint)
Create a new PdfLine.
public PdfLine(PdfPoint point1, PdfPoint point2)
Parameters
Properties
Length
Length of the line.
public double Length { get; }
Property Value
Point1
First point of the line.
public readonly PdfPoint Point1 { get; }
Property Value
Point2
Second point of the line.
public readonly PdfPoint Point2 { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetBoundingRectangle()
The rectangle completely containing the PdfLine.
public PdfRectangle GetBoundingRectangle()
Returns
GetHashCode()
Returns the hash code for this PdfLine.
public override int GetHashCode()