DocumentModelPage Class
Represents a document page.
- Inheritance:
- System.ObjectDocumentModelPage
Properties
Height
Gets the page height in Points.
Property Value
- System.Double
The page height in Points.
PageContent
Gets the content of the page.
public FrameworkElement PageContent { get; }
Public ReadOnly Property PageContent As FrameworkElement
Property Value
- System.Windows.FrameworkElement
The content of the page.
Range
Gets the range in the DocumentModel that corresponds to this page.
Property Value
Width
Gets the page width in Points.
Property Value
- System.Double
The page width in Points.
Methods
ConvertToDocument()
Extracts a DocumentModel from this page.
Returns
The extracted document model.
GetElementLayout(Element)
Obtains position and size of the element on the page.
public FloatingLayout GetElementLayout(Element element)
Public Function GetElementLayout(element As Element) As FloatingLayout
Parameters
element
- Element
Element for which to obtain the position and size.
Returns
The position and size of the element. null, if the element is not supported or it is not present on the page.
Remarks
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
- System.IO.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.
Save(String)
Saves the document page to a file with the specified path. Path must include file extension.
Parameters
path
- System.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.
Exceptions
- System.InvalidOperationException
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
- System.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.