Table of Contents

Struct PdfSize

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Stores an ordered pair of double precision floating-point numbers, typically the width and height of a PDF rectangle.

public struct PdfSize : IEquatable<PdfSize>
Implements
Inherited Members

Remarks

The Docotic.Pdf Library Documentation page contains links to articles, guides, and sample code.

Constructors

PdfSize(PdfPoint)

Initializes a new instance of the PdfSize struct from the specified PdfPoint.

PdfSize(PdfSize)

Initializes a new instance of the PdfSize struct from the specified PdfSize.

PdfSize(double, double)

Initializes a new instance of the PdfSize struct from the specified dimensions.

PdfSize(float, float)

Initializes a new instance of the PdfSize struct from the specified dimensions.

Fields

Empty

PdfSize struct with zero dimensions.

Properties

Height

Gets or sets the vertical component of this PdfSize.

IsEmpty

Gets a value indicating whether this PdfSize has zero width and height.

Width

Gets or sets the horizontal component of this PdfSize.

Methods

Add(PdfSize, PdfSize)

Adds the width and height of one PdfSize structure to the width and height of another PdfSize structure.

Equals(PdfSize)

Tests to see whether the specified size has the same dimensions as this PdfSize.

Equals(object?)

Tests to see whether the specified object is a PdfSize with the same dimensions as this PdfSize.

GetHashCode()

Returns a hash code for this PdfSize structure.

Subtract(PdfSize, PdfSize)

Subtracts the width and height of one PdfSize structure from the width and height of another PdfSize structure.

ToPdfPoint()

Converts a PdfSize to a PdfPoint.

ToString()

Converts this PdfSize to a human readable string.

ToString(IFormatProvider)

Converts this PdfSize to a human readable string.

Operators

operator +(PdfSize, PdfSize)

Adds the width and height of one PdfSize structure to the width and height of another PdfSize structure.

operator ==(PdfSize, PdfSize)

Tests whether two PdfSize structures are equal.

explicit operator PdfPoint(PdfSize)

Performs an explicit conversion from PdfSize to PdfPoint.

operator !=(PdfSize, PdfSize)

Tests whether two PdfSize structures are different.

operator -(PdfSize, PdfSize)

Subtracts the width and height of one PdfSize structure from the width and height of another PdfSize structure.