New to Telerik Document ProcessingStart a free 30-day trial

Represents a simple, immutable text document.

Definition

Namespace:Telerik.Windows.Documents.TextRepresentation

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

C#
public class SimpleTextDocument

Inheritance: objectSimpleTextDocument

Constructors

Initializes a new instance of the SimpleTextDocument class with the specified text content.

C#
public SimpleTextDocument(string text, DocumentType documentType)
Parameters:textstring

The text content to be stored in the document. Cannot be null.

documentTypeDocumentType

The type of document.

Properties

Gets the type of document represented by this instance.

C#
public DocumentType DocumentType { get; }

Gets the text content associated with this instance.

C#
public string Text { get; }