Struct PageRotationDegrees
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)
Create a PageRotationDegrees.
public PageRotationDegrees(int rotation)
Parameters
rotation
intRotation 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
SwapsAxis
Whether the rotation flips the x and y axes.
public bool SwapsAxis { get; }
Property Value
Value
The rotation of the page in degrees clockwise.
public int Value { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
Equals(PageRotationDegrees)
public bool Equals(PageRotationDegrees other)
Parameters
other
PageRotationDegrees
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(PageRotationDegrees, PageRotationDegrees)
Equal.
public static bool operator ==(PageRotationDegrees degrees1, PageRotationDegrees degrees2)
Parameters
degrees1
PageRotationDegreesdegrees2
PageRotationDegrees
Returns
operator !=(PageRotationDegrees, PageRotationDegrees)
Not equal.
public static bool operator !=(PageRotationDegrees degrees1, PageRotationDegrees degrees2)
Parameters
degrees1
PageRotationDegreesdegrees2
PageRotationDegrees