Udostępnij za pośrednictwem


TextContentChangingEventArgs Constructor

Definition

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

public:
 TextContentChangingEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot ^ beforeSnapshot, System::Object ^ editTag, Action<Microsoft::VisualStudio::Text::TextContentChangingEventArgs ^> ^ cancelAction);
public TextContentChangingEventArgs (Microsoft.VisualStudio.Text.ITextSnapshot beforeSnapshot, object editTag, Action<Microsoft.VisualStudio.Text.TextContentChangingEventArgs> cancelAction);
new Microsoft.VisualStudio.Text.TextContentChangingEventArgs : Microsoft.VisualStudio.Text.ITextSnapshot * obj * Action<Microsoft.VisualStudio.Text.TextContentChangingEventArgs> -> Microsoft.VisualStudio.Text.TextContentChangingEventArgs
Public Sub New (beforeSnapshot As ITextSnapshot, editTag As Object, cancelAction As Action(Of TextContentChangingEventArgs))

Parameters

beforeSnapshot
ITextSnapshot

The most recent ITextSnapshot before the change.

editTag
Object

An arbitrary object associated with this change.

cancelAction
Action<TextContentChangingEventArgs>

The action to execute when Cancel() is called. Invoked at most once.

Exceptions

beforeSnapshot is null.

Applies to