The following tables list the members exposed by TextDocument.
Name | Description | |
---|---|---|
TextDocument Constructor | Initializes a new TextDocument |
Name | Description | |
---|---|---|
AutoCasingMode | Gets or sets the auto-casing behaviors to use when the language has case-insensitive keywords and other terminal symbols. | |
CurrentSnapshot | Returns a snapshot representing the current version of the document (read-only). | |
FileName | Returns the name of the file passed into the Load(String) method (read-only) | |
IsReadOnly | Returns/sets whether or not the text in the document can be changed. | |
Language | Returns/sets the associated language | |
NewLineSequence | Returns/sets the sequence of characters used to delimit lines in the document. | |
SyntaxTree | Returns the syntax parse tree (read-only) | |
TabEntryBehavior | Returns/sets what gets inserted into a document when a tab key is entered.. | |
TabExtent | Returns/sets the number of spaces a tab character represents. | |
UndoManager | Returns/sets the object that manages the undo/redo stacks |
Name | Description | |
---|---|---|
Append | Appends text to the end of the document | |
ClearUndoRedoHistory | Removes all the Undo and Redo history that relates to this TextDocument. | |
CreateTagAggregator<T> | Returns a DocumentTagAggregator that can aggregate ITags of type T. | |
Delete | Overloaded. Removes all text from this document. | |
FindReplace | Overloaded. Finds an instance of text in the document that matches the search criteria and replaces it with another string. | |
FindReplaceAll | Replaces all instances of text in the document that matches the search criteria. | |
IndentLines | Indents a block of lines (i.e. inserts leading whitepsace). | |
InitializeText | Initializes all of the text in the document. | |
Insert | Inserts text into the document at a specific offset | |
Load | Overloaded. Initializes the document with text from the specified file. | |
OutdentLines | Outdents a block of lines (i.e. removes leading whitepsace). | |
Parse | Parses the document synchronously. | |
ParseAsync | Parses the document on a background thread. | |
RegisterResources | Adds an additonal Resx file in which the control will pull its resources from. | |
Replace | Overloaded. Replaces a range of text in the document with a new string. | |
Save | Overloaded. Saves the document to the file specified via a previous call to the Load(String) method. | |
UnregisterResources | Removes a previously registered resx file. |
Name | Description | |
---|---|---|
OnTextChanged | Invokes the TextChanged event. | |
OnTextChanging | Invokes the TextChanging event. | |
OnTextLoaded | Occurs after either the Load or InitializeText method is called. |
Name | Description | |
---|---|---|
PropertyChanged | Ocuurs after a property value has changed | |
TextChanged | Occurs after changes have been made to the document's text. | |
TextChanging | Occurs before changes are made to the document's text. | |
TextLoaded | Occurs after either the Load or the InitializeText method is called. |