Struct PdfPoint
A point in a PDF file.
public struct PdfPoint
- 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
PdfPoint(decimal, decimal)
Create a new PdfPoint at this position.
public PdfPoint(decimal x, decimal y)
Parameters
PdfPoint(double, double)
Create a new PdfPoint at this position.
public PdfPoint(double x, double y)
Parameters
PdfPoint(int, int)
Create a new PdfPoint at this position.
public PdfPoint(int x, int y)
Parameters
Properties
Origin
The origin of the coordinates system.
public static PdfPoint Origin { get; }
Property Value
X
The X coordinate for this point. (Horizontal axis).
public readonly double X { get; }
Property Value
Y
The Y coordinate of this point. (Vertical axis).
public readonly double Y { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
Returns the hash code for this PdfPoint.
public override int GetHashCode()
Returns
MoveX(double)
Creates a new PdfPoint which is the current point moved in the x direction relative to its current position by a value.
public PdfPoint MoveX(double dx)
Parameters
dx
doubleThe distance to move the point in the x direction relative to its current location.
Returns
- PdfPoint
A new point shifted on the x axis by the given delta value.
MoveY(double)
Creates a new PdfPoint which is the current point moved in the y direction relative to its current position by a value.
public PdfPoint MoveY(double dy)
Parameters
dy
doubleThe distance to move the point in the y direction relative to its current location.
Returns
- PdfPoint
A new point shifted on the y axis by the given delta value.
ToString()
public override string ToString()
Returns
Translate(double, double)
Creates a new PdfPoint which is the current point moved in the x and y directions relative to its current position by a value.
public PdfPoint Translate(double dx, double dy)
Parameters
dx
doubleThe distance to move the point in the x direction relative to its current location.
dy
doubleThe distance to move the point in the y direction relative to its current location.
Returns
- PdfPoint
A new point shifted on the y axis by the given delta value.