TextSnapshotChangedEventArgs(ITextSnapshot, ITextSnapshot, Object) 构造函数

定义

为更改事件初始化的新实例 TextSnapshotChangedEventArgsInitializes a new instance of a TextSnapshotChangedEventArgs for a Change event.

protected:
 TextSnapshotChangedEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot ^ beforeSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ afterSnapshot, System::Object ^ editTag);
protected:
 TextSnapshotChangedEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot ^ beforeSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot ^ afterSnapshot, Platform::Object ^ editTag);
 TextSnapshotChangedEventArgs(Microsoft::VisualStudio::Text::ITextSnapshot const & beforeSnapshot, Microsoft::VisualStudio::Text::ITextSnapshot const & afterSnapshot, winrt::Windows::Foundation::IInspectable const & editTag);
protected TextSnapshotChangedEventArgs (Microsoft.VisualStudio.Text.ITextSnapshot beforeSnapshot, Microsoft.VisualStudio.Text.ITextSnapshot afterSnapshot, object editTag);
new Microsoft.VisualStudio.Text.TextSnapshotChangedEventArgs : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.ITextSnapshot * obj -> Microsoft.VisualStudio.Text.TextSnapshotChangedEventArgs
Protected Sub New (beforeSnapshot As ITextSnapshot, afterSnapshot As ITextSnapshot, editTag As Object)

参数

beforeSnapshot
ITextSnapshot

ITextSnapshot发生更改之前的最新。The most recent ITextSnapshot before the change occurred.

afterSnapshot
ITextSnapshot

ITextSnapshot发生更改后立即发生。The ITextSnapshot immediately after the change occurred.

editTag
Object

与此更改关联的任意对象。An arbitrary object associated with this change.

例外

beforeSnapshotafterSnapshot 为 null。beforeSnapshot or afterSnapshot is null.

适用于