TextSnapshotChangedEventArgs Class
Event arguments for the ITextDocument.TextChanged event.
public class TextSnapshotChangedEventArgs : EventArgs
- Inheritance:
- System.Object System.EventArgs Object
Constructors
TextSnapshotChangedEventArgs(ITextSnapshot, ITextSnapshot, ITextChange)
Initializes a new instance of the TextSnapshotChangedEventArgs
class.
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
Gets a TextSnapshotRange that contains the unioned changed range relative to the NewSnapshot.
public TextSnapshotRange ChangedSnapshotRange { get; }
Property Value
- TextSnapshotRange:
A TextSnapshotRange that contains the unioned changed range relative to the NewSnapshot.
NewSnapshot
Gets the ITextSnapshot that is in effect after the text change is applied.
public ITextSnapshot NewSnapshot { get; }
Property Value
- ITextSnapshot:
The ITextSnapshot that is in effect after the text change is applied.
Remarks
This property value may be null
before the text change actually occurs.
OldSnapshot
Gets the ITextSnapshot that is in effect before the text change is applied.
public ITextSnapshot OldSnapshot { get; }
Property Value
- ITextSnapshot:
The ITextSnapshot that is in effect before the text change is applied.
TextChange
Gets the ITextChange that is made to the document, causing a transition from OldSnapshot to NewSnapshot.
public ITextChange TextChange { get; }
Property Value
- ITextChange:
The ITextChange that is made to the document.
Inherited Members
- System.EventArgs.Empty
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()