AvalonEdit
TextLengthChanged Event
NamespacesICSharpCode.AvalonEdit.DocumentTextDocumentTextLengthChanged
Is raised when the TextLength property changes.
Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("This event will be removed in a future version; use the PropertyChanged event instead")]
public event EventHandler TextLengthChanged
<ObsoleteAttribute("This event will be removed in a future version; use the PropertyChanged event instead")> _
Public Event TextLengthChanged As EventHandler
public:
[ObsoleteAttribute(L"This event will be removed in a future version; use the PropertyChanged event instead")]
 event EventHandler^ TextLengthChanged {
	void add (EventHandler^ value);
	void remove (EventHandler^ value);
}
Remarks

Here is the order in which events are raised during a document update:

If the insert/remove/replace methods are called without a call to BeginUpdate(), they will call BeginUpdate() and EndUpdate() to ensure no change happens outside of UpdateStarted/UpdateFinished.

There can be multiple document changes between the BeginUpdate() and EndUpdate() calls. In this case, the events associated with EndUpdate will be raised only once after the whole document update is done.

The UndoStack listens to the UpdateStarted and UpdateFinished events to group all changes into a single undo step.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238