TextDocument
Represents a text document.
Definition
Namespace:Telerik.Windows.SyntaxEditor.Core.Text
Assembly:Telerik.Windows.SyntaxEditor.Core.dll
Syntax:
public class TextDocument
Inheritance: objectTextDocument
Constructors
Initializes a new instance of the TextDocument class.
public TextDocument()
Initializes a new instance of the TextDocument class.
Initializes a new instance of the TextDocument class.
Initializes a new instance of the TextDocument class.
Properties
Gets the current snapshot.
public TextSnapshot CurrentSnapshot { get; }
Gets the document history.
public TextDocumentHistory History { get; }
Methods
Looks up for a all spans containing the search text or matching a regex pattern.
Looks up for a all spans containing the search text.
Looks up for a previous span containing the search text or matching a regex pattern.
Raises the PreviewTextContentChanged event.
protected virtual void OnPreviewTextContentChanged(TextContentChangedEventArgs args)
Raises the PreviewTextContentChanging event.
protected virtual void OnPreviewTextContentChanging(TextContentChangingEventArgs args)
Raises the TextContentChanged event.
protected virtual void OnTextContentChanged(TextContentChangedEventArgs args)
Raises the TextContentChanging event.
protected virtual void OnTextContentChanging(TextContentChangingEventArgs args)
Replaces all matched strings of the given search text with the provided replace text.
Replaces the next matched strings of the given search text with the provided replace text.
Events
Occurs when text is about to be changed.
public event EventHandler<TextContentChangedEventArgs> PreviewTextContentChanged
Occurs when text is about to be changing.
public event EventHandler<TextContentChangingEventArgs> PreviewTextContentChanging
Occurs when text is changed.
public event EventHandler<TextContentChangedEventArgs> TextContentChanged
Occurs when text is changing.
public event EventHandler<TextContentChangingEventArgs> TextContentChanging