PdfSize Structure

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

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
[SerializableAttribute]
public struct PdfSize
VB
<SerializableAttribute>
Public Structure PdfSize

The PdfSize type exposes the following members.

Constructors

  NameDescription
Public methodPdfSize(PdfPoint)
Initializes a new instance of the PdfSize struct from the specified PdfPoint.
Public methodPdfSize(PdfSize)
Initializes a new instance of the PdfSize struct from the specified PdfSize.
Public methodPdfSize(Double, Double)
Initializes a new instance of the PdfSize struct from the specified dimensions.
Public methodPdfSize(Single, Single)
Initializes a new instance of the PdfSize struct from the specified dimensions.

Properties

  NameDescription
Public propertyHeight
Gets or sets the vertical component of this PdfSize.
Public propertyIsEmpty
Gets a value indicating whether this PdfSize has zero width and height.
Public propertyWidth
Gets or sets the horizontal component of this PdfSize.

Methods

  NameDescription
Public methodStatic memberAdd
Adds the width and height of one PdfSize structure to the width and height of another PdfSize structure.
Public methodEquals
Tests to see whether the specified object is a PdfSize with the same dimensions as this PdfSize.
(Overrides ValueType.Equals(Object).)
Public methodGetHashCode
Returns a hash code for this PdfSize structure.
(Overrides ValueType.GetHashCode().)
Public methodGetType (Inherited from Object.)
Public methodStatic memberSubtract
Subtracts the width and height of one PdfSize structure from the width and height of another PdfSize structure.
Public methodToPdfPoint
Converts a PdfSize to a PdfPoint.
Public methodToString()
Converts this PdfSize to a human readable string.
(Overrides ValueType.ToString().)
Public methodToString(IFormatProvider)
Converts this PdfSize to a human readable string.

Operators

  NameDescription
Public operatorStatic memberAddition
Adds the width and height of one PdfSize structure to the width and height of another PdfSize structure.
Public operatorStatic memberEquality
Tests whether two PdfSize structures are equal.
Public operatorStatic memberExplicit(PdfSize to PdfPoint)
Performs an explicit conversion from PdfSize to PdfPoint.
Public operatorStatic memberInequality
Tests whether two PdfSize structures are different.
Public operatorStatic memberSubtraction
Subtracts the width and height of one PdfSize structure from the width and height of another PdfSize structure.

Fields

  NameDescription
Public fieldStatic memberEmpty
PdfSize struct with zero dimensions.

Extension Methods

  NameDescription
Public Extension MethodToPointF
Converts a PdfSize to a PointF.
(Defined by PdfSizeGdiExtensions.)
Public Extension MethodToSize
Converts a PdfSize to a Size.
(Defined by PdfSizeGdiExtensions.)
Public Extension MethodToSizeF
Converts a PdfSize to a SizeF.
(Defined by PdfSizeGdiExtensions.)

See Also