TextSnapshotChangedEventArgs Class
Event arguments for the ITextDocument.TextChanged event.
public class TextSnapshotChangedEventArgs : EventArgs
Constructors
TextSnapshotChangedEventArgs(ITextSnapshot, ITextSnapshot, ITextChange)
Event arguments for the ITextDocument.TextChanged event.
public TextSnapshotChangedEventArgs(ITextSnapshot oldSnapshot, ITextSnapshot newSnapshot, ITextChange textChange)
| Parameter | Type | Description |
|---|---|---|
| oldSnapshot | ITextSnapshot | The ITextSnapshot that is in effect before the text change is applied. |
| newSnapshot | ITextSnapshot | The ITextSnapshot that is in effect after the text change is applied. |
| textChange | ITextChange | The ITextChange that is made. |
Properties
ChangedSnapshotRange
A TextSnapshotRange that contains the unioned changed range relative to the NewSnapshot.
NewSnapshot
The ITextSnapshot that is in effect after the text change is applied.
OldSnapshot
The ITextSnapshot that is in effect before the text change is applied.
TextChange
The ITextChange that is made to the document, causing a transition from OldSnapshot to NewSnapshot.
Inherited Members
- EventArgs.Empty
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()