cete.dynamicpdf.extendedpagedimensions
ExtendedPageDimensions
- Namespace: ceTe.DynamicPDF
- Assemblies: DynamicPDF.NETFramework40.dll, DynamicPDF.NETStandard20.dll
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
Edge dimensions of the page in points (1/72 inches).
- body: Dimensions
Body dimensions of the page in points (1/72 inches).
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
Edge dimensions of the page in points (1/72 inches).
- bleedBox: Dimensions
Bleed box dimensions of the page in points (1/72 inches).
- trimBox: Dimensions
Trim box dimensions of the page in points (1/72 inches).
- body: Dimensions
Body dimensions of the page in points (1/72 inches).
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
- mediaBox: Dimensions
Media box dimensions of the page in points (1/72 inches).
- cropBox: Dimensions
Crop box dimensions of the page in points (1/72 inches).
- bleedBox: Dimensions
Bleed dimensions of the page in points (1/72 inches).
- trimBox: Dimensions
Trim dimensions of the page in points (1/72 inches).
- artBox: Dimensions
Art box dimensions of the page in points (1/72 inches).
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
- mediaBox: Dimensions
Media box dimensions of the page in points (1/72 inches).
- cropBox: Dimensions
Crop box dimensions of the page in points (1/72 inches).
- bleedBox: Dimensions
Bleed dimensions of the page in points (1/72 inches).
- trimBox: Dimensions
Trim dimensions of the page in points (1/72 inches).
- artBox: Dimensions
Art box dimensions of the page in points (1/72 inches).
- body: Dimensions
Body dimensions of the page in points (1/72 inches).
Properties
ArtBox
Gets the art box dimensions of the page in points (1/72 inches).
public Dimensions ArtBox { get; }
Public Property ArtBox As Dimensions
Property Value
BleedBox
Gets the bleed box dimensions of the page in points (1/72 inches).
public Dimensions BleedBox { get; }
Public Property BleedBox As Dimensions
Property Value
Body
Represents the dimensions of the areas body. (Inherited from AreaDimensions)
public Dimensions Body { get; }
Public Property Body As Dimensions
Property Value
BottomMargin
Gets or sets the bottom margin of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)
public float BottomMargin { get; set; }
Public Property BottomMargin As Single
Property Value
CropBox
Gets the crop box dimensions of the page in points (1/72 inches). This is the same as the edge of the page.
public Dimensions CropBox { get; }
Public Property CropBox As Dimensions
Property Value
Edge
Represents the dimensions of the areas edge. (Inherited from AreaDimensions)
public Dimensions Edge { get; }
Public Property Edge As Dimensions
Property Value
Height
Gets or sets the height of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)
public float Height { get; set; }
Public Property Height As Single
Property Value
LeftMargin
Gets or sets the left margin of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)
public float LeftMargin { get; set; }
Public Property LeftMargin As Single
Property Value
MediaBox
Gets the media box dimensions of the page in points (1/72 inches).
public Dimensions MediaBox { get; }
Public Property MediaBox As Dimensions
Property Value
RightMargin
Gets or sets the right margin of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)
public float RightMargin { get; set; }
Public Property RightMargin As Single
Property Value
TopMargin
Gets or sets the top margin of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)
public float TopMargin { get; set; }
Public Property TopMargin As Single
Property Value
TrimBox
Gets the trim box dimensions of the page in points (1/72 inches).
public Dimensions TrimBox { get; }
Public Property TrimBox As Dimensions
Property Value
Width
Gets or sets the width of the page dimensions in points (1/72 inches). (Inherited from AreaDimensions)
public float Width { get; set; }
Public Property Width As Single
Property Value
Methods
Draw(DocumentWriter)
Draws the page dimensions to the given DocumentWriter object.
public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
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
- obj: Object
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: Single
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: Single
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 in points (1/72 inches). (Inherited from PageDimensions)
public void SetMargins(float margins)
Sub SetMargins(margins As Single)
Parameters
- margins: Single
Margins value in points (1/72 inches) to set.
SetMargins(Single, Single)
Sets all of the margins of the page in points (1/72 inches). (Inherited from PageDimensions)
public void SetMargins(float leftAndRight, float topAndBottom)
Sub SetMargins(leftAndRight As Single, topAndBottom As Single)
Parameters
- leftAndRight: Single
Left and right margin value in points (1/72 inches) to set.
- topAndBottom: Single
Top and bottom margin value in points (1/72 inches) to set.
SetMargins(Single, Single, Single, Single)
Sets all of the margins of the page in points (1/72 inches). (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
- leftMargin: Single
Left margin value in points (1/72 inches) to set.
- topMargin: Single
Top margin value in points (1/72 inches) to set.
- rightMargin: Single
Right margin value in points (1/72 inches) to set.
- bottomMargin: Single
Bottom margin value in points (1/72 inches) 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 .