GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    XmlSaveOptions Class

    Namespace:
    GemBox.Document
    Assembly:
    GemBox.Document.dll

    Represents a class that stores saving options for XML file. The only XML format that GemBox.Document currently supports is Flat OPC XML format.

    • C#
    • VB.NET
    public class XmlSaveOptions : SaveOptions
    Public Class XmlSaveOptions
        Inherits SaveOptions
    Inheritance:
    Object
    SaveOptions
    XmlSaveOptions

    Constructors

    XmlSaveOptions()

    Initializes a new instance of the XmlSaveOptions class.

    • C#
    • VB.NET
    public XmlSaveOptions()
    Public Sub New

    Properties

    ContentType

    Gets the content-type for XML file format: application/xml.

    • C#
    • VB.NET
    public override string ContentType { get; }
    Public Overrides ReadOnly Property ContentType As String
    Property Value
    String

    The content-type for XML file format.

    Overrides
    SaveOptions.ContentType

    ImageDpi

    Gets or sets the saved images DPI.

    • C#
    • VB.NET
    public int ImageDpi { get; set; }
    Public Property ImageDpi As Integer
    Property Value
    Int32

    The saved images DPI.

    Remarks

    This property controls the image quality for all images in the file. Larger value results in better-quality images but increases the file size. Setting this property to 0 will disable image optimization. Standard DPI values are:

    • 330 - Good quality for HD displays
    • 220 - Good quality for most printers and displays
    • 150 - Good quality for web pages and projectors
    • 96 - Good quality for smaller file sizes

    Password

    Gets or sets the password used to protect / encrypt the document.

    • C#
    • VB.NET
    public string Password { get; set; }
    Public Property Password As String
    Property Value
    String

    The password used to protect / encrypt the document.

    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)

    OdtDefault

    Gets the default saving options for Open Document file format.

    (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)

    Examples

    Convert between Word files and HTML pages in C# and VB.NET
    Convert Word and HTML to PDF in C# and VB.NET
    Create and write to Word file in C# and VB.NET
    DOCX Encryption in C# and VB.NET

    See Also

    XmlDefault
    Save(String, SaveOptions)
    Save(Stream, SaveOptions)
    Flat OPC format.
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.