PlainTextDocument

PlainTextDocument

Overview

PlainTextDocument is a class in Aspose.Words FOSS for .NET.

Allows to extract plain-text representation of the document’s content.

This class provides 4 methods for working with PlainTextDocument objects in .NET programs. Available methods include: PlainTextDocument. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: BuiltInDocumentProperties, CustomDocumentProperties, Text.

Properties

NameTypeAccessDescription
TextstringReadGets textual content of the document concatenated as a string.
BuiltInDocumentPropertiesBuiltInDocumentPropertiesReadGets BuiltInDocumentProperties of the document.
CustomDocumentPropertiesCustomDocumentPropertiesReadGets CustomDocumentProperties of the document.

Methods

SignatureDescription
PlainTextDocument(fileName: string)Creates a plain text document from a file.
PlainTextDocument(fileName: string, loadOptions: LoadOptions)Creates a plain text document from a file.
PlainTextDocument(stream: Stream)Calls PlainTextDocument(stream) on this PlainTextDocument instance.
PlainTextDocument(stream: Stream, loadOptions: LoadOptions)Calls PlainTextDocument(stream, loadOptions) on this PlainTextDocument instance.

See Also