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

    Show / Hide Table of Contents

    LoadOptions Class

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

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

    • C#
    • VB.NET
    public abstract class LoadOptions
    Public MustInherit Class LoadOptions
    Inheritance:
    System.Object
    LoadOptions
    Derived
    DocLoadOptions
    DocxLoadOptions
    HtmlLoadOptions
    OdtLoadOptions
    PdfLoadOptions
    RtfLoadOptions
    TxtLoadOptions
    XmlLoadOptions
    Remarks

    To preserve unsupported file format features, set PreserveUnsupportedFeatures to true. For more information, see preservation.

    Properties

    DocDefault

    Gets the default loading options for Microsoft Word 97-2003 (DOC) format.

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

    The default loading options for Microsoft Word 97-2003 (DOC) format.

    Remarks

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

    DocxDefault

    Gets the default loading options for Microsoft Word (DOCX) format.

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

    The default loading options for Microsoft Word (DOCX) format.

    Remarks

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

    HtmlDefault

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

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

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

    Remarks

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

    OdtDefault

    Gets the default loading options for Open Document (ODT) format.

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

    The default loading options for Open Document (ODT) format.

    Remarks

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

    PdfDefault

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

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

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

    Remarks

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

    PreserveUnsupportedFeatures

    Gets or sets a value indicating whether to preserve file format features that are not directly supported through GemBox.Document object model.

    • C#
    • VB.NET
    public bool PreserveUnsupportedFeatures { get; set; }
    Public Property PreserveUnsupportedFeatures As Boolean
    Property Value
    System.Boolean

    true to preserve file format features that are not directly supported through GemBox.Document object model; otherwise, false.

    Remarks

    Default value is set to true.

    For more information, see preservation.

    RtfDefault

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

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

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

    Remarks

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

    TxtDefault

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

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

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

    Remarks

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

    XmlDefault

    Gets the default loading options for XML file format.

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

    The default loading options for XML file format.

    Remarks

    This property always returns a new instance of XmlLoadOptions 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
    Read and Extract PDF Text in C# and VB.NET
    Open and read Word file in C# and VB.NET

    See Also

    Load(String)
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.