PdfPagesCollection Class

A collection of PdfPage objects

Definition

Namespace: HiQPdf
Assembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 16.0.0
C#
public class PdfPagesCollection : IEnumerable
Inheritance
Object    PdfPagesCollection
Implements
IEnumerable

Properties

Count The number of pages in collection
Document The parent document owning this pages collection
Item Returns the page at the given index in collection

Methods

AddPage Adds a new page with the default size, orientation and margins to the end of this collection
AddPage(PdfDocumentMargins) Adds a new page with the default size and orientation and the given margins to the end of this collection
AddPage(PdfPage) Adds an existing page to the end of the collection. When the page is from another document that document must remain open until this document is saved
AddPage(PdfPageSize, PdfDocumentMargins) Adds a new page with the default orientation and the given size and margins to end of this document
AddPage(PdfPageSize, PdfDocumentMargins, PdfPageOrientation) Adds a new page with the given size, margins and orientation at the end of this collection
AddPageAtIndex(Int32, PdfPage) Adds an existing page at the given index in collection. The first page index is 0. When the page is from another document that document must remain open until this document is saved
AddPageAtIndex(Int32, PdfPageSize, PdfDocumentMargins, PdfPageOrientation) Adds a new page with the given size, margins and orientation at the given index in collection. The first page index is 0
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetEnumerator Returns the collection enumerator
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
IndexOf Returns the index of given page in collection or a negative number if the page does not exist in collection
MemberwiseClone
(Inherited from Object)
Remove(Int32) Removes the page at the given index from document. The first page index is 0
Remove(PdfPage) Removes the given page from collection
ToString
(Inherited from Object)

See Also