XpsSaveOptions Class
Represents options for saving to XML Paper Specification file format.
public sealed class XpsSaveOptions : SaveOptionsPublic NotInheritable Class XpsSaveOptions
Inherits SaveOptions- Inheritance:
- System.ObjectXpsSaveOptions
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
Limitations
Gets limitations for saving to XPS file format.
public override FileFormatLimitations Limitations { get; }Public Overrides ReadOnly Property Limitations As FileFormatLimitationsProperty Value
Overrides
Remarks
These are the limits:
- MaxRows: System.Int32.MaxValue
- MaxColumns: System.Int32.MaxValue
- MaxColors: System.Int32.MaxValue
- MaxCellStyles: System.Int32.MaxValue
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.
SelectionType
Gets or sets a value indicating whether to save the whole ExcelFile or just ActiveWorksheet.
public SelectionType SelectionType { get; set; }Public Property SelectionType As SelectionTypeProperty Value
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
| CsvDefault | Gets the default options for saving to Character Separated Values file format. (Inherited from SaveOptions) |
| HtmlDefault | Gets the default options for saving to HyperText Markup Language File format. (Inherited from SaveOptions) |
| ImageDefault | Gets the default options for saving to image formats. (Inherited from SaveOptions) |
| OdsDefault | Gets the default options for saving to OpenDocument Spreadsheet file format. (Inherited from SaveOptions) |
| PdfDefault | Gets the default options for saving to Portable Document Format file. (Inherited from SaveOptions) |
| TxtDefault | Gets the default options for saving to Tab delimited file format. (Inherited from SaveOptions) |
| XlsDefault | Gets the default options for saving to, XLS file format (Microsoft Excel Spreadsheet format; Excel 2003 and prior versions) . (Inherited from SaveOptions) |
| XlsbDefault | Gets the default options for saving to XLSB file format (Microsoft Excel Binary File Format). (Inherited from SaveOptions) |
| XlsxDefault | Gets the default options for saving to XLSX file format (Microsoft Excel Open XML Spreadsheet; Excel 2007 and later). (Inherited from SaveOptions) |
| XpsDefault | Gets the default options for saving to XML Paper Specification file format. (Inherited from SaveOptions) |