Click or drag to resize
DocumentModel Methods

The DocumentModel type exposes the following members.

Methods
  NameDescription
Public methodCalculateListItems
Calculates the list items contained in this document.
Public methodClone
Clones this DocumentModel instance.
Public methodConvertToImageSource
Converts single page specified in options of this DocumentModel instance to an ImageSource instance.
Public methodConvertToXpsDocument
Converts this DocumentModel instance to an XpsDocument instance.
Public methodGetChildElements(Boolean)
Gets the child elements.
(Inherited from Element.)
Public methodGetChildElements(Boolean, ElementType)
Gets the child elements filtered by ElementType.
(Inherited from Element.)
Public methodGetPaginator
Gets the document paginator.
Public methodGetPaginator(PaginatorOptions)
Gets the document paginator and updates the document based on the specified options.
Public methodImportT(T, Boolean)
Imports (clones) the specified source element to this DocumentModel instance so it can be inserted into document content.
Public methodImportT(T, Boolean, ImportMapping)
Imports (clones) the specified source element to this DocumentModel instance so it can be inserted into document content.
Public methodImportT(T, Boolean, Boolean)
Imports (clones) the specified source element to this DocumentModel instance so it can be inserted into document content.
Public methodStatic memberLoad(String)
Loads a document from a file with the specified path.
Public methodStatic memberLoad(Stream, LoadOptions)
Loads a document from the specified stream.
Public methodStatic memberLoad(String, LoadOptions)
Loads a document from a file with the specified path.
Public methodPrint
Prints the document to the default printer.
Public methodPrint(String)
Prints the document to the specified printer.
Public methodPrint(String, PrintOptions)
Prints the document to the specified printer according to specified options.
Public methodSave(String)
Saves the document to a file with the specified path. Path must include file extension.
Public methodSave(Stream, SaveOptions)
Saves the document in the specified stream.
Public methodCode exampleSave(Object, String)
Saves the document to a System.Web.HttpResponse or System.Web.HttpResponseBase output stream or a System.Net.Http.HttpResponseMessage and sets appropriate HTTP response headers (Content-Type and Content-Disposition). Use this method in ASP.NET application to send the document to a client browser. File format is resolved from fileName extension. See remarks why httpResponse parameter is of type Object.
Public methodSave(String, SaveOptions)
Saves the document to a file with the specified path.
Public methodSave(XmlWriter, HtmlSaveOptions)
Save the document to HTML format using the specified writer.
Public methodCode exampleSave(Object, String, SaveOptions)
Saves the document to a System.Web.HttpResponse or System.Web.HttpResponseBase output stream or a System.Net.Http.HttpResponseMessage and sets appropriate HTTP response headers (Content-Type and Content-Disposition). Use this method in ASP.NET application to send the document to a client browser. File format is defined with options parameter. See remarks why httpResponse parameter is of type Object.
Top
See Also