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

    Show / Hide Table of Contents

    TxtSaveOptions Class

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

    Represents options for saving to plain text (TXT) format.

    • C#
    • VB.NET
    public sealed class TxtSaveOptions : SaveOptions
    Public NotInheritable Class TxtSaveOptions
        Inherits SaveOptions
    Inheritance:
    System.Object
    SaveOptions
    TxtSaveOptions

    Constructors

    TxtSaveOptions()

    Initializes a new instance of the TxtSaveOptions class.

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

    Properties

    ContentType

    Gets the content-type for TXT file format: "text/plain; charset=" + Encoding.System.Text.Encoding.WebName.

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

    The content-type for TXT file format.

    Overrides
    SaveOptions.ContentType

    Encoding

    Gets or sets the encoding for the TXT file.

    • C#
    • VB.NET
    public Encoding Encoding { get; set; }
    Public Property Encoding As Encoding
    Property Value
    System.Text.Encoding

    The encoding for the TXT file.

    Exceptions
    System.ArgumentNullException

    Value is set to null.

    ParagraphBreak

    Gets or sets the string to use as a paragraph break. Default value is System.Environment.NewLine.

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

    The string to use as a paragraph break.

    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)

    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)

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.