• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Struct PdfSize

Width × height dimensions in PDF user-space units.

Implements
IEquatable<PdfSize>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: DRIT.Pdf
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
Type Name Description
double width
double height

Properties

Height

Gets the height in points.

Declaration
public double Height { get; }
Property Value
Type Description
double

Width

Gets the width in points.

Declaration
public double Width { get; }
Property Value
Type Description
double

Methods

Equals(PdfSize)

Indicates whether this size equals another.

Declaration
public bool Equals(PdfSize other)
Parameters
Type Name Description
PdfSize other
Returns
Type Description
bool

Equals(object?)

Indicates whether this size equals another object.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
ValueType.Equals(object)

GetHashCode()

Returns a hash code for this size.

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()

ToString()

Returns a string representation of the size in the format "width x height".

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()

Operators

operator ==(PdfSize, PdfSize)

Indicates whether two PdfSize instances are equal.

Declaration
public static bool operator ==(PdfSize a, PdfSize b)
Parameters
Type Name Description
PdfSize a
PdfSize b
Returns
Type Description
bool

operator !=(PdfSize, PdfSize)

Indicates whether two PdfSize instances are not equal.

Declaration
public static bool operator !=(PdfSize a, PdfSize b)
Parameters
Type Name Description
PdfSize a
PdfSize b
Returns
Type Description
bool

Implements

IEquatable<T>
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX