TextContentChangingEventArgs Constructor (ITextSnapshot^, Object^, Action<TextContentChangingEventArgs^>^)

 

Initializes a new instance of TextContentChangingEventArgs to be passed during a Changing event.

Namespace:   Microsoft.VisualStudio.Text
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.

Return to top
Show: