TextSnapshotChangedEventArgs Constructor
Initializes a new instance of a TextSnapshotChangedEventArgs for a Change event.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Protected Sub New ( _
beforeSnapshot As ITextSnapshot, _
afterSnapshot As ITextSnapshot, _
editTag As Object _
)
protected TextSnapshotChangedEventArgs(
ITextSnapshot beforeSnapshot,
ITextSnapshot afterSnapshot,
Object editTag
)
protected:
TextSnapshotChangedEventArgs(
ITextSnapshot^ beforeSnapshot,
ITextSnapshot^ afterSnapshot,
Object^ editTag
)
new :
beforeSnapshot:ITextSnapshot *
afterSnapshot:ITextSnapshot *
editTag:Object -> TextSnapshotChangedEventArgs
protected function TextSnapshotChangedEventArgs(
beforeSnapshot : ITextSnapshot,
afterSnapshot : ITextSnapshot,
editTag : Object
)
Parameters
- beforeSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The most recent ITextSnapshot before the change occurred.
- afterSnapshot
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The ITextSnapshot immediately after the change occurred.
- editTag
Type: System.Object
An object associated with this change.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | beforeSnapshot or afterSnapshot is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.