TextContentChangingEventArgs Constructor (ITextSnapshot^, Object^, Action<TextContentChangingEventArgs^>^)
Visual Studio 2015
Initializes a new instance of TextContentChangingEventArgs to be passed during a Changing event.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
public:
TextContentChangingEventArgs(
ITextSnapshot^ beforeSnapshot,
Object^ editTag,
Action<TextContentChangingEventArgs^>^ cancelAction
)
Parameters
- beforeSnapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The most recent ITextSnapshot before the change.
- editTag
-
Type:
System::Object^
An arbitrary object associated with this change.
- cancelAction
-
Type:
System::Action<TextContentChangingEventArgs^>^
The action to execute when Cancel is called. Invoked at most once.
| Exception | Condition |
|---|---|
| ArgumentNullException | beforeSnapshot is null. |
Show: