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

定义

为更改事件初始化的新实例 TextSnapshotChangedEventArgs

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发生更改之前的最新。

afterSnapshot
ITextSnapshot

ITextSnapshot发生更改后立即发生。

editTag
Object

与此更改关联的任意对象。

例外

beforeSnapshotafterSnapshot 为 null。

适用于