Struct Offset
- Namespace
- Rustaveli.Pdf
- Assembly
- Rustaveli.Pdf.dll
A point, or a distance to move by, in PDF points: across from the left and down from the top, as layout measures a page.
public readonly record struct Offset : IEquatable<Offset>
- Implements
- Inherited Members
Constructors
Offset(float, float)
A point, or a distance to move by, in PDF points: across from the left and down from the top, as layout measures a page.
public Offset(float X, float Y)
Parameters
Properties
X
public float X { get; init; }
Property Value
Y
public float Y { get; init; }
Property Value
Zero
The origin itself, or no move at all.
public static Offset Zero { get; }
Property Value
Methods
Reverse()
The move that undoes this one: as far, in the opposite direction on both axes. Moving by an offset and then by its reverse comes back to where it started.
public Offset Reverse()
Returns
ToString()
The two coordinates in points, across then down: (1.5, -2.25).
public override string ToString()
Returns
Operators
operator +(Offset, Offset)
public static Offset operator +(Offset left, Offset right)