Table of Contents

Class Rotation

Namespace
ZingPDF.Elements
Assembly
ZingPDF.dll

Represents a page rotation value in 90-degree increments.

public class Rotation
Inheritance
Rotation
Inherited Members

Fields

Degrees180

A 180-degree rotation.

public static readonly Rotation Degrees180

Field Value

Rotation

Degrees270

A 270-degree clockwise rotation.

public static readonly Rotation Degrees270

Field Value

Rotation

Degrees90

A 90-degree clockwise rotation.

public static readonly Rotation Degrees90

Field Value

Rotation

None

No page rotation.

public static readonly Rotation None

Field Value

Rotation

Properties

Value

Gets the rotation angle in degrees.

public int Value { get; }

Property Value

int

Methods

FromValue(int)

Creates a rotation from a raw degree value.

public static Rotation FromValue(int value)

Parameters

value int

The rotation angle in degrees. Must be a multiple of 90.

Returns

Rotation

Operators

operator +(Rotation, Rotation)

Combines two rotation values.

public static Rotation operator +(Rotation a, Rotation b)

Parameters

a Rotation
b Rotation

Returns

Rotation

operator +(Number, Rotation)

Adds a numeric rotation value to a Rotation.

public static Rotation operator +(Number a, Rotation b)

Parameters

a Number
b Rotation

Returns

Rotation

implicit operator Rotation(Number)

Converts a PDF numeric rotation value to a Rotation instance.

public static implicit operator Rotation(Number rotation)

Parameters

rotation Number

Returns

Rotation