In This Article

TextSnapshotChangingEventArgs Class

Event arguments for the ITextDocument.TextChanging event.

public class TextSnapshotChangingEventArgs : CancelEventArgs
Inheritance:
object EventArgs CancelEventArgs object

Constructors

TextSnapshotChangingEventArgs(ITextSnapshot, ITextSnapshot, ITextChange)

Event arguments for the ITextDocument.TextChanging event.

public TextSnapshotChangingEventArgs(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

NewSnapshot

The ITextSnapshot that is in effect after the text change is applied.

public ITextSnapshot NewSnapshot { get; }

Property Value

ITextSnapshot

OldSnapshot

The ITextSnapshot that is in effect before the text change is applied.

public ITextSnapshot OldSnapshot { get; }

Property Value

ITextSnapshot

TextChange

The ITextChange that is made to the document, causing a transition from OldSnapshot to NewSnapshot.

public ITextChange TextChange { get; }

Property Value

ITextChange

Inherited Members

Extension Methods