XpsSaveOptions Class
Represents a class that stores saving options for XML Paper Specification (XPS) file.
public sealed class XpsSaveOptions : SaveOptionsPublic NotInheritable Class XpsSaveOptions
Inherits SaveOptions- Inheritance:
- System.ObjectXpsSaveOptions
Remarks
For more information about a level of support for XPS format, see supported file formats.
Constructors
XpsSaveOptions()
Initializes a new instance of the XpsSaveOptions class.
Properties
ContentType
Gets the content-type for XPS file format: application/vnd.ms-xpsdocument.
public override string ContentType { get; }Public Overrides ReadOnly Property ContentType As StringProperty Value
- System.String
The content-type for XPS file format.
Overrides
FontSettings
Gets or sets the font-related settings used when saving the document to the XPS file format.
If this property is null, then static members of the FontSettings are used to resolve font-related settings.
Property Value
The font-related settings used when saving the document to the XPS file format.
RenderingMode
Gets or sets the rendering mode used when saving the content to an XML Paper Specification (XPS) file.
public RenderingMode RenderingMode { get; set; }Public Property RenderingMode As RenderingModeProperty Value
The rendering mode used when saving the content to an XML Paper Specification (XPS) file.
Exceptions
- System.NotSupportedException
The rendering mode is not supported because of the reasons explained in the exception's System.Exception.Message.
UseAdvancedTextFormatting
Gets or sets a value indicating whether to do text layout using advanced text formatting implementation such as those from Windows Presentation Foundation (WPF) or HarfBuzz text-shaping engine, or to use the default primitive implementation.
Default value is false for improved performance and stability of the output because advanced text formatting is required only for complex scripts or advanced typography features.
public bool UseAdvancedTextFormatting { get; set; }Public Property UseAdvancedTextFormatting As BooleanProperty Value
- System.Boolean
true to do text layout using advanced text formatting implementation; otherwise false to use the default primitive implementation.
Inherited Properties
| DocxDefault | Gets the default saving options for Microsoft Word file format. Word file will be saved in Docx format. (Inherited from SaveOptions) |
| HtmlDefault | Gets the default saving options for HyperText Markup Language (HTML) format. (Inherited from SaveOptions) |
| ImageDefault | Gets the default saving options for image file format. Image will be saved in Bmp format. (Inherited from SaveOptions) |
| MarkdownDefault | Gets the default saving options for Markdown file format. (Inherited from SaveOptions) |
| OdtDefault | Gets the default saving options for Open Document file format. (Inherited from SaveOptions) |
| PageCount | Gets or sets the number of pages which should be saved. (Inherited from SaveOptions) |
| PageNumber | Gets or sets the zero-based page number of the document's first page which should be saved. (Inherited from SaveOptions) |
| PdfDefault | Gets the default saving options for Portable Document Format (PDF). (Inherited from SaveOptions) |
| RtfDefault | Gets the default saving options for Rich Text (RTF) format. (Inherited from SaveOptions) |
| TxtDefault | Gets the default saving options for Plain Text (TXT) format. (Inherited from SaveOptions) |
| XmlDefault | Gets the default saving options for XML file format. (Inherited from SaveOptions) |
| XpsDefault | Gets the default saving options for XML Paper Specification (XPS) format. (Inherited from SaveOptions) |