This topic uses descriptive text to illustrate the exposed TextDocument
class properties to enable custom configuration.
This topic contains the following sections:
The IsReadOnly
property, when set to “true”, prevents the document from accepting any changes made to it.
The Language property identifies the code language (for example, C#, Visual Basic, etc…) that applies to a given document. If the Language property is not set it treats the document as a simple text file with no syntax rules. In this case, the property will return an instance of the PlainTextLanguage class.
The UndoManager
property supports unlimited undo/redo of changes.
The following topic provides additional information related to this topic.