Version 24.2 (latest)

TextDocument Class Methods

For a list of all members of this type, see TextDocument members.

Public Methods
 NameDescription
Public MethodAppendAppends text to the end of the document  
Public MethodClearUndoRedoHistoryRemoves all the Undo and Redo history that relates to this TextDocument.  
Public MethodCreateTagAggregator<T>Returns a DocumentTagAggregator that can aggregate ITags of type T.  
Public MethodDeleteOverloaded. Removes all text from this document.  
Public MethodFindReplaceOverloaded. Finds an instance of text in the document that matches the search criteria and replaces it with another string.  
Public MethodFindReplaceAllReplaces all instances of text in the document that matches the search criteria.  
Public MethodIndentLinesIndents a block of lines (i.e. inserts leading whitepsace).  
Public MethodInitializeTextInitializes all of the text in the document.  
Public MethodInsertInserts text into the document at a specific offset  
Public MethodLoadOverloaded. Initializes the document with text from the specified file.  
Public MethodOutdentLinesOutdents a block of lines (i.e. removes leading whitepsace).  
Public MethodParseParses the document synchronously.  
Public MethodParseAsyncParses the document on a background thread.  
Public Methodstatic (Shared in Visual Basic)RegisterResourcesAdds an additonal Resx file in which the control will pull its resources from.  
Public MethodReplaceOverloaded. Replaces a range of text in the document with a new string.  
Public MethodSaveOverloaded. Saves the document to the file specified via a previous call to the Load(String) method.  
Public Methodstatic (Shared in Visual Basic)UnregisterResourcesRemoves a previously registered resx file.  
Protected Methods
 NameDescription
Protected MethodOnTextChangedInvokes the TextChanged event.  
Protected MethodOnTextChangingInvokes the TextChanging event.  
Protected MethodOnTextLoadedOccurs after either the Load or InitializeText method is called.  
See Also