Skip to main content

ExtendedPageDimensions

Version: 6.0

cete.dynamicpdf.extendedpagedimensions

ExtendedPageDimensions​

Represents the extended dimensions of a page.

public class ExtendedPageDimensions : PageDimensions
Public Class ExtendedPageDimensions
Inherits PageDimensions

Inheritance: Object → AreaDimensions → PageDimensions → ExtendedPageDimensions

Licensing​

This class is a DynamicPDF Generator Community Edition feature.

Constructors​

ExtendedPageDimensions(Dimensions, Dimensions)​

Initializes a new instance of the ExtendedPageDimensions class.

public ExtendedPageDimensions(Dimensions edge, Dimensions body)
Public Sub New (edge As Dimensions, body As Dimensions)

Parameters​

Edge dimensions of the page.

Body dimensions of the page.

ExtendedPageDimensions(Dimensions, Dimensions, Dimensions, Dimensions)​

Initializes a new instance of the ExtendedPageDimensions class.

public ExtendedPageDimensions(Dimensions edge, Dimensions bleedBox, Dimensions trimBox, Dimensions body)
Public Sub New (edge As Dimensions, bleedBox As Dimensions, trimBox As Dimensions, body As Dimensions)

Parameters​

Edge dimensions of the page.

Bleed box dimensions of the page.

Trim box dimensions of the page.

Body dimensions of the page.

ExtendedPageDimensions(Dimensions, Dimensions, Dimensions, Dimensions, Dimensions)​

Initializes a new instance of the ExtendedPageDimensions class.

public ExtendedPageDimensions(Dimensions mediaBox, Dimensions cropBox, Dimensions bleedBox, Dimensions trimBox, Dimensions artBox)
Public Sub New (mediaBox As Dimensions, cropBox As Dimensions, bleedBox As Dimensions, trimBox As Dimensions, artBox As Dimensions)

Parameters​

Media box dimensions of the page.

Crop box dimensions of the page.

Bleed dimensions of the page.

Trim dimensions of the page.

Art box dimensions of the page.

ExtendedPageDimensions(Dimensions, Dimensions, Dimensions, Dimensions, Dimensions, Dimensions)​

Initializes a new instance of the ExtendedPageDimensions class.

public ExtendedPageDimensions(Dimensions mediaBox, Dimensions cropBox, Dimensions bleedBox, Dimensions trimBox, Dimensions artBox, Dimensions body)
Public Sub New (mediaBox As Dimensions, cropBox As Dimensions, bleedBox As Dimensions, trimBox As Dimensions, artBox As Dimensions, body As Dimensions)

Parameters​

Media box dimensions of the page.

Crop box dimensions of the page.

Bleed dimensions of the page.

Trim dimensions of the page.

Art box dimensions of the page.

Body dimensions of the page.

Properties​

ArtBox​

Gets the art box dimensions of the page.

public Dimensions ArtBox { get; }
Public Property ArtBox As Dimensions

Property Value​

Dimensions

BleedBox​

Gets the bleed box dimensions of the page.

public Dimensions BleedBox { get; }
Public Property BleedBox As Dimensions

Property Value​

Dimensions

Body​

Represents the dimensions of the areas body. (Inherited from AreaDimensions)

public Dimensions Body { get; }
Public Property Body As Dimensions

Property Value​

Dimensions

BottomMargin​

Gets or sets the bottom margin of the page dimensions. (Inherited from AreaDimensions)

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

Property Value​

Single

CropBox​

Gets the crop box dimensions of the page. This is the same as the edge of the page.

public Dimensions CropBox { get; }
Public Property CropBox As Dimensions

Property Value​

Dimensions

Edge​

Represents the dimensions of the areas edge. (Inherited from AreaDimensions)

public Dimensions Edge { get; }
Public Property Edge As Dimensions

Property Value​

Dimensions

Height​

Gets or sets the height of the page dimensions. (Inherited from AreaDimensions)

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

Property Value​

Single

LeftMargin​

Gets or sets the left margin of the page dimensions. (Inherited from AreaDimensions)

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

Property Value​

Single

MediaBox​

Gets the media box dimensions of the page.

public Dimensions MediaBox { get; }
Public Property MediaBox As Dimensions

Property Value​

Dimensions

RightMargin​

Gets or sets the right margin of the page dimensions. (Inherited from AreaDimensions)

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

Property Value​

Single

TopMargin​

Gets or sets the top margin of the page dimensions. (Inherited from AreaDimensions)

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

Property Value​

Single

TrimBox​

Gets the trim box dimensions of the page.

public Dimensions TrimBox { get; }
Public Property TrimBox As Dimensions

Property Value​

Dimensions

Width​

Gets or sets the width of the page dimensions. (Inherited from AreaDimensions)

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

Property Value​

Single

Methods​

Draw(DocumentWriter)​

Draws the page dimensions to the given DocumentWriter object.

public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)

Parameters​

DocumentWriter to receive the page dimensions output.

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

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

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetPdfX(Single)​

Returns the translated X coordinate. (Inherited from AreaDimensions)

public float GetPdfX(float x)
Function GetPdfX(x As Single) As Single

Parameters​

X coordinate to translate.

Returns​

A translated X coordinate.

GetPdfY(Single)​

Gets the translated PDF y coordinate.

public float GetPdfY(float y)
Function GetPdfY(y As Single) As Single

Parameters​

Y coordinate to translate.

Returns​

A translated Y coordinate.

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.

SetMargins(Single)​

Sets all of the margins for the page dimensions. (Inherited from PageDimensions)

public void SetMargins(float margins)
Sub SetMargins(margins As Single)

Parameters​

Margins value to set.

SetMargins(Single, Single)​

Sets all of the margins of the page. (Inherited from PageDimensions)

public void SetMargins(float leftAndRight, float topAndBottom)
Sub SetMargins(leftAndRight As Single, topAndBottom As Single)

Parameters​

Left and right margin value to set.

Top and bottom margin value to set.

SetMargins(Single, Single, Single, Single)​

Sets all of the margins of the page. (Inherited from PageDimensions)

public void SetMargins(float leftMargin, float topMargin, float rightMargin, float bottomMargin)
Sub SetMargins(leftMargin As Single, topMargin As Single, rightMargin As Single, bottomMargin As Single)

Parameters​

Left margin value to set.

Top margin value to set.

Right margin value to set.

Bottom margin value to set.

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