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
| Name | Type | Access | Description |
|---|---|---|---|
Text | string | Read | Gets textual content of the document concatenated as a string. |
BuiltInDocumentProperties | BuiltInDocumentProperties | Read | Gets BuiltInDocumentProperties of the document. |
CustomDocumentProperties | CustomDocumentProperties | Read | Gets CustomDocumentProperties of the document. |
Methods
| Signature | Description |
|---|---|
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. |