cete.dynamicpdf.layoutengine.documentlayout
DocumentLayout
- Namespace: ceTe.DynamicPDF.LayoutEngine
- Assemblies: DynamicPDF.NETFramework40.dll, DynamicPDF.NETStandard20.dll
Represents a Document based on the supplied DLEX file.
public class DocumentLayout
Public Class DocumentLayout
Inheritance: Object → DocumentLayout
Licensing
This class is a DynamicPDF ReportWriter Professional Edition feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF ReportWriter for .NET Professional Edition
- DynamicPDF ReportWriter for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Professional Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
Constructors
DocumentLayout(DlexFile)
Initializes a new instance of the DocumentLayout class.
public DocumentLayout(DlexFile dlex)
Public Sub New (dlex As DlexFile)
Parameters
- dlex: DlexFile
The DlexFile to use to create the DocumentLayout class.
DocumentLayout(String)
Initializes a new instance of the DocumentLayout class.
public DocumentLayout(string filePath)
Public Sub New (filePath As String)
Parameters
- filePath: String
The physical file path of the DLEX file to use.
Properties
Author
Gets or sets the author of the DocumentLayout .
public string Author { get; set; }
Public Property Author As String
Property Value
BasePhysicalPath
Gets or sets the base physical path of the document layout.
public string BasePhysicalPath { get; set; }
Public Property BasePhysicalPath As String
Property Value
FontFamilies
Gets the FontFamilyList object of the document layout.
public FontFamilyList FontFamilies { get; }
Public Property FontFamilies As FontFamilyList
Property Value
Fonts
Gets the FontList object of the document layout.
public FontList Fonts { get; }
Public Property Fonts As FontList
Property Value
FormatProvider
Gets or sets the IFormatProvider of the document layout.
public IFormatProvider FormatProvider { get; set; }
Public Property FormatProvider As IFormatProvider
Property Value
Id
Gets or sets the ID of the DocumentLayout .
public string Id { get; set; }
Public Property Id As String
Property Value
Keywords
Gets or sets the keywords of the DocumentLayout .
public string Keywords { get; set; }
Public Property Keywords As String
Property Value
LayoutParts
Gets or sets the DocumentLayoutPartList of the document layout.
public DocumentLayoutPartList LayoutParts { get; set; }
Public Property LayoutParts As DocumentLayoutPartList
Property Value
Subject
Gets or sets the subject of the DocumentLayout .
public string Subject { get; set; }
Public Property Subject As String
Property Value
Tag
Gets or sets a value indicating whether document is tagged.
public bool Tag { get; set; }
Public Property Tag As Boolean
Property Value
Title
Gets or sets the title of the DocumentLayout .
public string Title { get; set; }
Public Property Title As String
Property Value
Methods
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.
GetElementById(String)
Returns the Object that matches the supplied id.
public Object GetElementById(string id)
Function GetElementById(id As String) As Object
Parameters
- id: String
The id of the object to retrieve.
Returns
The element with the supplied id.
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 .
GetLayoutElementById(String)
Returns the LayoutElement that matches the supplied id.
public LayoutElement GetLayoutElementById(string id)
Function GetLayoutElementById(id As String) As LayoutElement
Parameters
- id: String
The id of the LayoutElement to retrieve.
Returns
The LayoutElement with the supplied id.
GetReportPartById(String)
Returns the ReportPart that matches the supplied id.
public ReportPart GetReportPartById(string id)
Function GetReportPartById(id As String) As ReportPart
Parameters
- id: String
The id of the ReportPart to retrieve.
Returns
The ReportPart with the supplied id.
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.
Layout(LayoutData)
Creates a Document object that contians the report as defined in the DLEX file.
public Document Layout(LayoutData layoutData)
Function Layout(layoutData As LayoutData) As Document
Parameters
- layoutData: LayoutData
The LayoutData to use for creating the report.
Returns
The Document object containing just created.
Layout(LayoutData, Document)
Appends the report to the given Document object.
public void Layout(LayoutData layoutData, Document document)
Sub Layout(layoutData As LayoutData, document As Document)
Parameters
- layoutData: LayoutData
The LayoutData to use for creating the report.
- document: Document
Document object to which the report is appended.
Remarks
NOTE: The documents metadata (title, author etc.) will not be overwritten.
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 .
Events
ReportDataRequired
Occurs when report data is required for a Report or SubReport.
public event ReportDataRequiredEventHandler DocumentLayout.ReportDataRequired;
Public Event DocumentLayout.ReportDataRequired As ReportDataRequiredEventHandler
Event Handler
ReportDataRequiredEventHandler