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
width- System.Double
The width of the new PdfSize structure.
height- System.Double
The height of the new PdfSize structure.
Exceptions
- System.ArgumentException
width or height is either System.Double.NaN, System.Double.NegativeInfinity or System.Double.PositiveInfinity.
- System.ArgumentOutOfRangeException
width or height is less than zero.
Properties
Height
Gets the height.
Property Value
- System.Double
The height.
Width
Gets the width.
Property Value
- System.Double
The width.
Methods
Equals(PdfSize)
public readonly bool Equals(PdfSize other)Public Function Equals(other As PdfSize) As BooleanParameters
other- PdfSize
The other size to compare with this size instance.
Returns
Equals(Object)
Determines whether the specified System.Object is equal to this PdfSize instance.
public override readonly bool Equals(object obj)Public Overrides Function Equals(obj As Object) As BooleanParameters
obj- System.Object
The System.Object to compare with this size instance.
Returns
- System.Boolean
Overrides
GetHashCode()
Returns a hash code for this PdfSize instance.
Returns
- System.Int32
An integer value that specifies a hash value for this PdfSize instance.
Overrides
ToString()
Returns a System.String that represents this PdfSize instance.
Returns
- System.String
A System.String that represents this PdfSize instance.
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 BooleanParameters
first- PdfSize
The first size.
second- PdfSize
The second size.
Returns
- System.Boolean
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 BooleanParameters
first- PdfSize
The first size.
second- PdfSize
The second size.
Returns
- System.Boolean
true if first and second sizes are not equal; otherwise, false.