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

    Show / Hide Table of Contents

    SaveOptions Class

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

    Represents a base class for saving options of various file formats.

    • C#
    • VB.NET
    public abstract class SaveOptions
    Public MustInherit Class SaveOptions
    Inheritance:
    System.Object
    SaveOptions
    Derived
    DocxSaveOptions
    HtmlSaveOptions
    ImageSaveOptions
    OdtSaveOptions
    PdfSaveOptions
    RtfSaveOptions
    TxtSaveOptions
    XmlSaveOptions
    XpsSaveOptions

    Properties

    ContentType

    Gets the content-type for this specific file format as defined in the RFC 2616.

    • C#
    • VB.NET
    public abstract string ContentType { get; }
    Public MustOverride ReadOnly Property ContentType As String
    Property Value
    System.String

    The content-type for this specific file format.

    See Also
    RFC 2616

    DocxDefault

    Gets the default saving options for Microsoft Word file format. Word file will be saved in Docx format.

    • C#
    • VB.NET
    public static DocxSaveOptions DocxDefault { get; }
    Public Shared ReadOnly Property DocxDefault As DocxSaveOptions
    Property Value
    DocxSaveOptions

    The default saving options for Microsoft Word file format.

    Remarks

    This property always returns a new instance of DocxSaveOptions class initialized with default constructor.

    HtmlDefault

    Gets the default saving options for HyperText Markup Language (HTML) format.

    • C#
    • VB.NET
    public static HtmlSaveOptions HtmlDefault { get; }
    Public Shared ReadOnly Property HtmlDefault As HtmlSaveOptions
    Property Value
    HtmlSaveOptions

    The default saving options for HyperText Markup Language (HTML) format.

    Remarks

    This property always returns a new instance of HtmlSaveOptions class initialized with default constructor.

    ImageDefault

    Gets the default saving options for image file format. Image will be saved in Bmp format.

    • C#
    • VB.NET
    public static ImageSaveOptions ImageDefault { get; }
    Public Shared ReadOnly Property ImageDefault As ImageSaveOptions
    Property Value
    ImageSaveOptions

    The default saving options for image file format.

    Remarks

    This property always returns a new instance of ImageSaveOptions class initialized with default constructor.

    OdtDefault

    Gets the default saving options for Open Document file format.

    • C#
    • VB.NET
    public static OdtSaveOptions OdtDefault { get; }
    Public Shared ReadOnly Property OdtDefault As OdtSaveOptions
    Property Value
    OdtSaveOptions

    The default saving options for Open Document file format.

    Remarks

    This property always returns a new instance of OdtSaveOptions class initialized with default constructor.

    PageCount

    Gets or sets the number of pages which should be saved.

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

    The number of pages which should be saved.

    Remarks

    The default value is System.Int32.MaxValue (all pages).

    PageNumber

    Gets or sets the zero-based page number of the document's first page which should be saved.

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

    The zero-based page number of the document's first page which should be saved.

    PdfDefault

    Gets the default saving options for Portable Document Format (PDF).

    • C#
    • VB.NET
    public static PdfSaveOptions PdfDefault { get; }
    Public Shared ReadOnly Property PdfDefault As PdfSaveOptions
    Property Value
    PdfSaveOptions

    The default saving options for Portable Document Format (PDF).

    Remarks

    This property always returns a new instance of PdfSaveOptions class initialized with default constructor.

    RtfDefault

    Gets the default saving options for Rich Text (RTF) format.

    • C#
    • VB.NET
    public static RtfSaveOptions RtfDefault { get; }
    Public Shared ReadOnly Property RtfDefault As RtfSaveOptions
    Property Value
    RtfSaveOptions

    The default saving options for Rich Text (RTF) format.

    Remarks

    This property always returns a new instance of RtfSaveOptions class initialized with default constructor.

    TxtDefault

    Gets the default saving options for Plain Text (TXT) format.

    • C#
    • VB.NET
    public static TxtSaveOptions TxtDefault { get; }
    Public Shared ReadOnly Property TxtDefault As TxtSaveOptions
    Property Value
    TxtSaveOptions

    The default saving options for Plain Text (TXT) format.

    Remarks

    This property always returns a new instance of TxtSaveOptions class initialized with default constructor.

    XmlDefault

    Gets the default saving options for XML file format.

    • C#
    • VB.NET
    public static XmlSaveOptions XmlDefault { get; }
    Public Shared ReadOnly Property XmlDefault As XmlSaveOptions
    Property Value
    XmlSaveOptions

    The default saving options for XML file format.

    Remarks

    This property always returns a new instance of XmlSaveOptions class initialized with default constructor.

    XpsDefault

    Gets the default saving options for XML Paper Specification (XPS) format.

    • C#
    • VB.NET
    public static XpsSaveOptions XpsDefault { get; }
    Public Shared ReadOnly Property XpsDefault As XpsSaveOptions
    Property Value
    XpsSaveOptions

    The default saving options for XML Paper Specification (XPS) format.

    Remarks

    This property always returns a new instance of XpsSaveOptions class initialized with default constructor.

    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

    See Also

    Save(String)
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.