InsertPage

XpsDocument.InsertPage method (1 of 3)

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

public XpsPage InsertPage(int index, bool activate = true)
Parameter Type Description
index Int32 Position at which a page should be inserted.
activate Boolean Flag indicating whether to select inserted page as active.

Return Value

Inserted page.

See Also


XpsDocument.InsertPage method (2 of 3)

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)
Parameter Type Description
index Int32 Position at which a page should be inserted.
width Single Width of a new page.
height Single Height of a new page.
activate Boolean Flag indicating whether to select inserted page as active.

Return Value

Inserted page.

See Also


XpsDocument.InsertPage method (3 of 3)

Inserts a page to the document at index position.

public XpsPage InsertPage(int index, XpsPage page, bool activate = true)
Parameter Type Description
index Int32 Position at which a page should be added.
page XpsPage Page to be inserted.
activate Boolean Flag indicating whether to select inserted page as active.

Return Value

Inserted page.

See Also