XpsDocument.InsertDocument

InsertDocument(int, bool)

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

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

See Also


InsertDocument(int, float, float, bool)

Inserts an empty document with the first page dimensions width and height at index position.

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

See Also