menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TextConverter - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TextConverter

    Represents TextConverter.

    Inheritance
    System.Object
    TextConverter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.DLS
    Assembly: Syncfusion.DLS.Base.dll
    Syntax
    public class TextConverter

    Constructors

    TextConverter()

    Default constructor.

    Declaration
    public TextConverter()

    Methods

    GetText(Document)

    Declaration
    public string GetText(Document document)
    Parameters
    Type Name Description
    Document document
    Returns
    Type
    System.String

    Read(StreamReader, IDocument)

    Declaration
    public void Read(StreamReader reader, IDocument document)
    Parameters
    Type Name Description
    System.IO.StreamReader reader
    IDocument document

    Write(StreamWriter, IDocument)

    By means of StreamWriter writes WordDocument to TXT format.

    Declaration
    public void Write(StreamWriter writer, IDocument document)
    Parameters
    Type Name Description
    System.IO.StreamWriter writer
    IDocument document

    WriteBody(IDocument)

    Writes document body.

    Declaration
    protected void WriteBody(IDocument document)
    Parameters
    Type Name Description
    IDocument document

    WriteHFBody(Document)

    Writes document header/footer body.

    Declaration
    protected void WriteHFBody(Document document)
    Parameters
    Type Name Description
    Document document

    WriteParagraph(IParagraph)

    Writes paragraph.

    Declaration
    protected void WriteParagraph(IParagraph paragraph)
    Parameters
    Type Name Description
    IParagraph paragraph

    WriteParagraphs(IParagraphCollection, Boolean)

    Writes paragraphs.

    Declaration
    protected void WriteParagraphs(IParagraphCollection collection, bool isTableBody)
    Parameters
    Type Name Description
    IParagraphCollection collection
    System.Boolean isTableBody

    WriteSectionEnd(ISection)

    Writes end of section.

    Declaration
    protected void WriteSectionEnd(ISection section)
    Parameters
    Type Name Description
    ISection section

    WriteTable(ITable)

    Writes table.

    Declaration
    protected void WriteTable(ITable table)
    Parameters
    Type Name Description
    ITable table

    WriteText(CharacterFormat, ITextRange)

    Writes text.

    Declaration
    protected void WriteText(CharacterFormat format, ITextRange text)
    Parameters
    Type Name Description
    CharacterFormat format
    ITextRange text
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved