XpsDocument.InsertPage

InsertPage(int, bool)

Inserts an empty page to the document with default page size at index position.

public XpsPage InsertPage(int index, bool activate = true)
ParameterTypeDescription
indexInt32Position at which a page should be inserted.
activateBooleanFlag indicating whether to select inserted page as active.

Return Value

Inserted page.

See Also


InsertPage(int, float, float, bool)

Inserts an empty page to the document with specified width and height at index position.

public XpsPage InsertPage(int index, float width, float height, bool activate = true)
ParameterTypeDescription
indexInt32Position at which a page should be inserted.
widthSingleWidth of a new page.
heightSingleHeight of a new page.
activateBooleanFlag indicating whether to select inserted page as active.

Return Value

Inserted page.

See Also


InsertPage(int, XpsPage, bool)

Inserts a page to the document at index position.

public XpsPage InsertPage(int index, XpsPage page, bool activate = true)
ParameterTypeDescription
indexInt32Position at which a page should be added.
pageXpsPagePage to be inserted.
activateBooleanFlag indicating whether to select inserted page as active.

Return Value

Inserted page.

See Also