Skip to main content

Dimensions

Version: 8.0

cete.dynamicpdf.dimensions

Dimensions​

Represents the dimensions of a rectangle.

public class Dimensions
Public Class Dimensions

Inheritance: Object → Dimensions

Licensing​

This class is a DynamicPDF Generator Community Edition feature.

Constructors​

Dimensions(PageSize, PageOrientation)​

Initializes a new instance of the Dimensions structure.

public Dimensions(PageSize size, PageOrientation orientation)
Public Sub New (size As PageSize, orientation As PageOrientation)

Parameters​

The page size of the dimensions in points (1/72 inches).

The orientation of the dimensions in points (1/72 inches).

Dimensions(Single, Single)​

Initializes a new instance of the Dimensions structure.

public Dimensions(float width, float height)
Public Sub New (width As Single, height As Single)

Parameters​

The width of the dimensions in points (1/72 inches).

the height of the dimensions in points (1/72 inches).

Dimensions(Single, Single, Single, Single)​

Initializes a new instance of the Dimensions structure.

public Dimensions(float left, float top, float right, float bottom)
Public Sub New (left As Single, top As Single, right As Single, bottom As Single)

Parameters​

The left edge of the dimensions in points (1/72 inches).

The top edge of the dimensions in points (1/72 inches).

The right edge of the dimensions in points (1/72 inches).

The bottom edge of the dimensions in points (1/72 inches).

Properties​

Bottom​

Gets or sets the bottom edge of the dimensions in points (1/72 inches).

public float Bottom { get; set; }
Public Property Bottom As Single

Property Value​

Single

Height​

Gets or sets width of the dimensions in points (1/72 inches).

public float Height { get; set; }
Public Property Height As Single

Property Value​

Single

Left​

Gets or sets the left edge of the dimensions in points (1/72 inches).

public float Left { get; set; }
Public Property Left As Single

Property Value​

Single

Gets or sets the right edge of the dimensions in points (1/72 inches).

public float Right { get; set; }
Public Property Right As Single

Property Value​

Single

Top​

Gets or sets the top edge of the dimensions in points (1/72 inches).

public float Top { get; set; }
Public Property Top As Single

Property Value​

Single

Width​

Gets or sets the width of the dimensions in points (1/72 inches).

public float Width { get; set; }
Public Property Width As Single

Property Value​

Single

Methods​

Equals(Object)​

Tests equality of Dimensions.

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

Object to compare to the current Dimension .

Returns​

true if the two dimensions are equal

GetHashCode()​

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Dimensions object.

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

See Also​

ceTe.DynamicPDF