Class
SimpleTextDocument

Represents a simple, immutable text document.

Definition

Namespace:Telerik.Windows.Documents.TextRepresentation

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public class SimpleTextDocument

Inheritance: objectSimpleTextDocument

Constructors

SimpleTextDocument(string, DocumentType)

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

Declaration

cs-api-definition
public SimpleTextDocument(string text, DocumentType documentType)

Parameters

text

string

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

documentType

DocumentType

The type of document.

Properties

DocumentType

Gets the type of document represented by this instance.

Declaration

cs-api-definition
public DocumentType DocumentType { get; }

Property Value

DocumentType

Text

Gets the text content associated with this instance.

Declaration

cs-api-definition
public string Text { get; }

Property Value

string