Struct PdfSize
Width × height dimensions in PDF user-space units.
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct PdfSize : IEquatable<PdfSize>
Constructors
PdfSize(double, double)
Initializes a new PdfSize with the specified dimensions.
Declaration
public PdfSize(double width, double height)
Parameters
Properties
Height
Gets the height in points.
Declaration
public double Height { get; }
Property Value
Width
Gets the width in points.
Declaration
public double Width { get; }
Property Value
Methods
Equals(PdfSize)
Indicates whether this size equals another.
Declaration
public bool Equals(PdfSize other)
Parameters
| Type |
Name |
Description |
| PdfSize |
other |
|
Returns
Equals(object?)
Indicates whether this size equals another object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Returns a hash code for this size.
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Returns a string representation of the size in the format "width x height".
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(PdfSize, PdfSize)
Indicates whether two PdfSize instances are equal.
Declaration
public static bool operator ==(PdfSize a, PdfSize b)
Parameters
Returns
operator !=(PdfSize, PdfSize)
Indicates whether two PdfSize instances are not equal.
Declaration
public static bool operator !=(PdfSize a, PdfSize b)
Parameters
Returns
Implements