DocumentModelPage Class
Represents a document page.
- Inheritance:
- DocumentModelPage
Properties
Height
Gets the page height in Points.
Property Value
PageContent
Gets the content of the page.
public FrameworkElement PageContent { get; }
Public ReadOnly Property PageContent As FrameworkElement
Property Value
The content of the page.
Width
Gets the page width in Points.
Property Value
Methods
Save(Stream, SaveOptions)
Saves the document page in the specified stream.
public void Save(Stream stream, SaveOptions options)
Public Sub Save(stream As Stream, options As SaveOptions)
Parameters
stream
- Stream
The stream in which to save the document page.
options
- SaveOptions
The saving options which can be used to define settings for save operation.
Remarks
Parameter options
, currently, must be of type PdfSaveOptions, XpsSaveOptions or ImageSaveOptions.
Save(String)
Saves the document page to a file with the specified path. Path must include file extension.
Parameters
path
- String
The path to which to save the document page.
Remarks
File extension that is extracted from the path
is used to create the appropriate SaveOptions derived class instance that is then passed to the Save(String, SaveOptions) method.
Following file extensions are supported:
- Portable Document Format: .pdf
- XML Paper Specification: .xps
- Image: .bmp, .gif, .jpg, .jpeg, .png, .tif, .tiff, .wdp
Exceptions
If file extension is not specified or not supported. If file extension is not recognized, use Save(String, SaveOptions) method overload instead.
Save(String, SaveOptions)
Saves the document page to a file with the specified path.
public void Save(string path, SaveOptions options)
Public Sub Save(path As String, options As SaveOptions)
Parameters
path
- String
The path to which to save the document page.
options
- SaveOptions
The saving options which can be used to define settings for save operation.
Remarks
Parameter options
, currently, must be of type PdfSaveOptions, XpsSaveOptions or ImageSaveOptions.