XpsDocument.AddPage

AddPage(bool)

Adds an empty page to the document with default page size.

public XpsPage AddPage(bool activate = true)
ParameterTypeDescription
activateBooleanFlag indicating whether to select added page as active.

Return Value

Added page.

See Also


AddPage(float, float, bool)

Adds an empty page to the document with specified width and height.

public XpsPage AddPage(float width, float height, bool activate = true)
ParameterTypeDescription
widthSingleWidth of a new page.
heightSingleHeight of a new page.
activateBooleanFlag indicating whether to select added page as active.

Return Value

Added page.

See Also


AddPage(XpsPage, bool)

Adds a page to the document.

public XpsPage AddPage(XpsPage page, bool activate = true)
ParameterTypeDescription
pageXpsPagePage to be added.
activateBooleanFlag indicating whether to select added page as active.

Return Value

Added page.

See Also