cete.dynamicpdf.pageelements.contentarea
ContentArea
- Namespace: ceTe.DynamicPDF.PageElements
- Assemblies: DynamicPDF.NETFramework40.dll, DynamicPDF.NETStandard20.dll
Represents group of content with area.
public class ContentArea : Group, IEnumerable, IPageElementContainer, ISerializable
Public Class ContentArea
Inherits Group
Implements IEnumerable, IPageElementContainer, ISerializable
Inheritance: Object → PageElement → Group → ContentArea
Implements: IEnumerable, IPageElementContainer, ISerializable
Licensing
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF Generator for .NET Professional Edition
- DynamicPDF Generator for .NET Enterprise Edition
- DynamicPDF Merger for .NET Professional Edition
- DynamicPDF Merger for .NET Enterprise Edition
- 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
ContentArea(Single, Single, Single, Single)
Initializes a new instance of the ContentArea class.
public ContentArea(float x, float y, float width, float height)
Public Sub New (x As Single, y As Single, width As Single, height As Single)
Parameters
- x: Single
X coordinate of the content area.
- y: Single
Y coordinate of the content area.
- width: Single
Width of the content area.
- height: Single
Height of the content area.
Properties
Count
Gets the number of page elements in the group. (Inherited from Group)
public int Count { get; }
Public Property Count As Int32
Property Value
Height
Gets or sets the height of the content area.
public float Height { get; set; }
Public Property Height As Single
Property Value
ID
Gets or sets the ID of the page element. (Inherited from PageElement)
public string ID { get; set; }
Public Property ID As String
Property Value
Item[Int32]
Gets the PageElement object at the given index. (Inherited from Group)
public PageElement this[int index] { get; }
Public Property Item(index As Integer) As PageElement
Property Value
Item[String]
Gets the PageElement object with the given ID. (Inherited from Group)
public PageElement this[string id] { get; }
Public Property Item(id As String) As PageElement
Property Value
Width
Gets or sets the width of the content area.
public float Width { get; set; }
Public Property Width As Single
Property Value
X
Gets or sets the X coordinate of the content area.
public float X { get; set; }
Public Property X As Single
Property Value
Y
Gets or sets the Y coordinate of the content area.
public float Y { get; set; }
Public Property Y As Single
Property Value
Methods
Add(PageElement)
Adds a page element to the group. (Inherited from Group)
public void Add(PageElement pageElement)
Sub Add(pageElement As PageElement)
Parameters
- pageElement: PageElement
PageElement object to add to the group.
Draw(PageWriter)
Draws the content area to the given PageWriter object.
public void Draw(PageWriter writer)
Sub Draw(writer As PageWriter)
Parameters
- writer: PageWriter
PageWriter object to receive the content area's 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.
GetEnumerator()
Returns an enumerator that can iterate through the Group . (Inherited from Group)
public IEnumerator GetEnumerator()
Function GetEnumerator() As IEnumerator
Returns
An IEnumerator for the entire Group
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 .
GetPageElementByID(String)
Returns a page element with the given ID. (Inherited from Group)
public PageElement GetPageElementByID(string id)
Function GetPageElementByID(id As String) As PageElement
Parameters
- id: String
ID of the page element to find.
Returns
PageElement with the given 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.
Insert(Int32, PageElement)
Inserts a page element to the group. (Inherited from Group)
public void Insert(int index, PageElement pageElement)
Sub Insert(index As Integer, pageElement As PageElement)
Parameters
- index: Int32
The Zero-based index it which the page element should be inserted.
- pageElement: PageElement
PageElement object to insert in the group.
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 .