[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.PageCollection

PageCollection Class

A collection of Page objects that make up a PDF document.

Inheritance
PageCollection
Namespace: GrapeCity.Documents.Pdf
Assembly: GcDocs.Pdf.dll
Syntax
public class PageCollection : Collection<Page>, IList<Page>, ICollection<Page>, IList, ICollection, IReadOnlyList<Page>, IReadOnlyCollection<Page>, IEnumerable<Page>, IEnumerable

Properties

Name Description
Doc

Gets the GcPdfDocument object owning this PageCollection collection.

Last

Gets the last page in the collection.

Methods

Name Description
Add()

Creates a new Page and adds it to the end of the document.

Add(PaperKind)

Creates a new Page of the specified PaperKind and adds it to the end of the document.

Add(SizeF)

Creates a new Page with the specified size and adds it to the end of the document.

ClearItems()
ClonePage(int, int, bool, bool)

Clones a page at a specified index (sourceIndex) and inserts it at a specified position (destinationIndex).

Insert(int)

Creates a new page and inserts it at a specific position in the document.

Insert(int, PaperKind)

Creates a new page with the specified size and inserts it at a specific position in the document.

Insert(int, SizeF)

Creates a new page with the specified size and inserts it at a specific position in the document.

InsertItem(int, Page)
Move(int, int)

Moves a page specified by its 0-based index to another position in the collection.

RemoveItem(int)
SetItem(int, Page)
Swap(int, int)

Swaps two pages specified by their 0-based indices.