Skip to content

PDFSize

Namespace: O2S.Components.PDF4NET.Graphics

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

public class PDFSize

Inheritance ObjectPDFSize

Constructors

PDFSize()

Initializes a new PDFSize object.

public PDFSize()

PDFSize(Double, Double)

Initializes a new PDFSize object with the given size.

public PDFSize(double width, double height)

Parameters

width Double
The horizontal component.

height Double
The vertical component.


Properties

Height

Gets or sets the vertical component of this PDFSize object.

public double Height { get; set; }

Property Value

Double
The vertical component of this PDFSize object, typically measured in points.


Width

Gets or sets the horizontal component of this PDFSize object.

public double Width { get; set; }

Property Value

Double
The horizontal component of this PDFSize object, typically measured in points.


Methods

ToString()

Converts the object to string representation.

public string ToString()

Returns

String
The object as string.