Version

TextChanging Event

Occurs before changes are made to the document's text.
Syntax
'Declaration
 
Public Event TextChanging As EventHandler(Of TextChangingEventArgs)
public event EventHandler<TextChangingEventArgs> TextChanging
Event Data

The event handler receives an argument of type TextChangingEventArgs containing data related to this event. The following TextChangingEventArgs properties provide information specific to this event.

PropertyDescription
After Returns the new snapshot which reflects the changes which triggered this event are applied.
Before Returns the current snapshot which reflects the state of the document before the changes which triggered this event are applied.
CanCancel Determines if this action can be canceled (read-only).
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
Changes Returns a read-only list containing all changes that triggered this event.
Source Identifies the source of the change (read-only).
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also