XpsFixedDocument
OfficeIMO.Xps
An editable native fixed document. Page references retain their attributes and link-target declarations.
Inheritance
- object
- XpsFixedDocument
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 3
- Method XpsDocument.AddDocument
- Method XpsDocument.InsertDocument
- Property XpsDocument.Documents
Accepted by parameters 2
- Method XpsDocument.InsertDocument
- Method XpsFixedDocument.MovePageTo
Methods
public XpsPage AddPage(double width = 816, double height = 1056, string language = "en-US") #Appends a new page, including when this fixed document was loaded from a package.
Parameters
- width double = 816
- height double = 1056
- language string = "en-US"
Returns
XpsPagepublic XElement? GetDocumentStructureMarkup(CancellationToken cancellationToken = default) #Returns detached relationship-owned DocumentStructure markup, or null when none is attached.
Parameters
- cancellationToken System.Threading.CancellationToken = default
Returns
XElement?public XElement GetMarkup() #Returns a detached copy of native fixed-document markup.
Returns
XElementpublic XpsPage InsertPage(int index, double width = 816, double height = 1056, string language = "en-US") #Inserts a new native page at the specified zero-based index.
Parameters
- index int
- width double = 816
- height double = 1056
- language string = "en-US"
Returns
XpsPagepublic void InsertPage(int index, XpsPage page) #Inserts another reference to a page owned by this package. The page and its relative resource base are shared.
Parameters
- index int
- page OfficeIMO.Xps.XpsPage
public void MovePage(int sourceIndex, int destinationIndex) #Moves a page reference to its final zero-based index, preserving its native attributes and link targets.
Parameters
- sourceIndex int
- destinationIndex int
public void MovePageTo(int sourceIndex, XpsFixedDocument destination, int destinationIndex) #Moves one page reference to another fixed document in this package, retaining reference metadata and the page's resource base.
Parameters
- sourceIndex int
- destination OfficeIMO.Xps.XpsFixedDocument
- destinationIndex int
public void RemovePageAt(int index) #Removes one page reference. The page part and associated resources remain in the package.
Parameters
- index int
public void ReplaceDocumentStructureMarkup(XElement markup) #Creates or replaces native outlines and story addresses, retaining unknown markup and unrelated relationships.
Parameters
- markup System.Xml.Linq.XElement