Skip to main content

ContentArea

Version: 6.0

cete.dynamicpdf.pageelements.contentarea

ContentArea​

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 coordinate of the content area.

Y coordinate of the content area.

Width of the content area.

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​

Int32

Height​

Gets or sets the height of the content area.

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

Property Value​

Single

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​

String

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​

PageElement

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​

PageElement

Width​

Gets or sets the width of the content area.

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

Property Value​

Single

X​

Gets or sets the X coordinate of the content area.

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

Property Value​

Single

Y​

Gets or sets the Y coordinate of the content area.

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

Property Value​

Single

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 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​

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​

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 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​

The Zero-based index it which the page element should be inserted.

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 .

See Also​

ceTe.DynamicPDF.PageElements