Table of Contents

Struct PageRotationDegrees

Namespace
UglyToad.PdfPig.Content
Assembly
UglyToad.PdfPig.dll

Represents the rotation of a page in a PDF document defined by the page dictionary in degrees clockwise.

public readonly struct PageRotationDegrees : IEquatable<PageRotationDegrees>
Implements
Inherited Members

Constructors

PageRotationDegrees(int)

public PageRotationDegrees(int rotation)

Parameters

rotation int

Rotation in degrees clockwise, must be a multiple of 90.

Properties

Radians

Get the rotation expressed in radians (anti-clockwise).

public decimal Radians { get; }

Property Value

decimal

SwapsAxis

Whether the rotation flips the x and y axes.

public bool SwapsAxis { get; }

Property Value

bool

Value

The rotation of the page in degrees clockwise.

public int Value { get; }

Property Value

int

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(PageRotationDegrees)

public bool Equals(PageRotationDegrees other)

Parameters

other PageRotationDegrees

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(PageRotationDegrees, PageRotationDegrees)

Equal.

public static bool operator ==(PageRotationDegrees degrees1, PageRotationDegrees degrees2)

Parameters

degrees1 PageRotationDegrees
degrees2 PageRotationDegrees

Returns

bool

operator !=(PageRotationDegrees, PageRotationDegrees)

Not equal.

public static bool operator !=(PageRotationDegrees degrees1, PageRotationDegrees degrees2)

Parameters

degrees1 PageRotationDegrees
degrees2 PageRotationDegrees

Returns

bool