PageCollection.Insert

Insert(int)

Insert an empty page into the collection at the specified position. If the document already contains pages with varying sizes, the size of the most frequently occurring page will be selected. In the case there are only two different pages, the size of the first page will be used.

public Page Insert(int pageNumber)
ParameterTypeDescription
pageNumberInt32Position of the new page.

Return Value

Inserted page.

See Also


Insert(int, Page)

Inserts page into page collection at specified place.

public Page Insert(int pageNumber, Page entity)
ParameterTypeDescription
pageNumberInt32Required page index in collection.
entityPagePage to be inserted.

Return Value

Inserted page.

See Also


Insert(int, ICollection<Page>)

Inserts pages from the collection into document.

public void Insert(int pageNumber, ICollection<Page> pages)
ParameterTypeDescription
pageNumberInt32Starting position of the new pages.
pagesICollection`1Pages collection.

See Also


Insert(int, Page[])

Inserts pages of the array into document.

public void Insert(int pageNumber, Page[] pages)
ParameterTypeDescription
pageNumberInt32Starting number of the new pages.
pagesPage[]Array of pages which will be inserted.

See Also