Table of Contents

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

X float
Y float

Properties

X

public float X { get; init; }

Property Value

float

Y

public float Y { get; init; }

Property Value

float

Zero

The origin itself, or no move at all.

public static Offset Zero { get; }

Property Value

Offset

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

Offset

ToString()

The two coordinates in points, across then down: (1.5, -2.25).

public override string ToString()

Returns

string

Operators

operator +(Offset, Offset)

public static Offset operator +(Offset left, Offset right)

Parameters

left Offset
right Offset

Returns

Offset