PdfSize Struct
Represents the size of an object.
public readonly struct PdfSize : IEquatable<PdfSize>
Public Structure PdfSize
Implements IEquatable(Of PdfSize)
Implements
Constructors
PdfSize(Double, Double)
Initializes a new instance of the PdfSize structure that contains the specified width
and height
.
public PdfSize(double width, double height)
Public Sub New(width As Double, height As Double)
Parameters
Exceptions
width
or height
is either NaN, NegativeInfinity or PositiveInfinity.
width
or height
is less than zero.
Properties
Height
Gets the height.
Property Value
The height.
Width
Gets the width.
Property Value
The width.
Methods
Equals(PdfSize)
public readonly bool Equals(PdfSize other)
Public Function Equals(other As PdfSize) As Boolean
Parameters
other
- PdfSize
The other size to compare with this size instance.
Returns
Equals(Object)
public override readonly bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
Returns
Overrides
GetHashCode()
Returns a hash code for this PdfSize instance.
Returns
Overrides
ToString()
Returns
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
Operators
Equality(PdfSize, PdfSize)
Determines whether first
and second
PdfSizes are equal.
public static bool operator ==(PdfSize first, PdfSize second)
Public Shared Operator =(first As PdfSize, second As PdfSize) As Boolean
Parameters
first
- PdfSize
The first size.
second
- PdfSize
The second size.
Returns
true if first
and second
sizes are equal; otherwise, false.
Inequality(PdfSize, PdfSize)
Determines whether first
and second
PdfSizes are not equal.
public static bool operator !=(PdfSize first, PdfSize second)
Public Shared Operator <>(first As PdfSize, second As PdfSize) As Boolean
Parameters
first
- PdfSize
The first size.
second
- PdfSize
The second size.
Returns
true if first
and second
sizes are not equal; otherwise, false.