cete.dynamicpdf.dimensions
Dimensions
- Namespace: ceTe.DynamicPDF
- Assemblies: DynamicPDF.CoreSuite.dll
Represents the dimensions of a rectangle.
public class Dimensions
Public Class Dimensions
Inheritance: Object → Dimensions
Derived: AutoBodyDimensions, AutoEdgeDimensions, AutoInheritableDimensions, AutoMediaBoxDimensions, InheritableDimensions
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
- size: PageSize
The page size of the dimensions in points (1/72 inches).
- orientation: PageOrientation
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
- width: Single
The width of the dimensions in points (1/72 inches).
- height: Single
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
- left: Single
The left edge of the dimensions in points (1/72 inches).
- top: Single
The top edge of the dimensions in points (1/72 inches).
- right: Single
The right edge of the dimensions in points (1/72 inches).
- bottom: Single
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
Height
Gets or sets the height of the dimensions in points (1/72 inches).
public float Height { get; set; }
Public Property Height As Single
Property Value
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
Right
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
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
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
Methods
Equals(Object)
Tests equality of Dimensions.
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
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 .