Skip to main content

PageList

Version: 7.0

cete.dynamicpdf.pagelist

PageList​

Represents a collection of pages associated with a document.

public class PageList : IEnumerable
Public Class PageList
Implements IEnumerable

Inheritance: Object → PageList

Implements: IEnumerable

Licensing​

This class is a DynamicPDF Generator Community Edition feature.

Constructors​

PageList()​

Initializes a new instance of the PageList class.

public PageList()
Public Sub New ()

Properties​

Count​

Gets the number of pages in the collection.

public int Count { get; }
Public Property Count As Int32

Property Value​

Int32

Item[Int32]​

Gets the page at the given index.

public Page this[int index] { get; }
Public Property Item(index As Integer) As Page

Property Value​

Page

Methods​

Add(Page)​

Adds a Page to the end of the PageList .

public int Add(Page page)
Function Add(page As Page) As Integer

Parameters​

The Page to be added to the end of the PageList .

Returns​

The PageList index at which the page has been added.

Remarks​

NOTE: If the Page to be added is of type AppendedPage(pages retreived from a MergeDocument are of type AppendedPage), the form fields of the AppendedPage may not be merged correctly. This behavior is expected, please use the MergeDocument.Append() method instead.

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 PageList .

public IEnumerator GetEnumerator()
Function GetEnumerator() As IEnumerator

Returns​

An IEnumerator for the entire PageList

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 .

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, Page)​

Inserts a Page into the PageList at the specified index.

public void Insert(int index, Page page)
Sub Insert(index As Integer, page As Page)

Parameters​

The zero-based index at which page should be inserted.

The Page to insert.

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