TextSnapshotChangedEventArgs 类

定义

提供有关上导致生成新的事务的信息 ITextBuffer ITextSnapshotProvides information about a transaction on a ITextBuffer that causes a new ITextSnapshot to be generated.

public ref class TextSnapshotChangedEventArgs abstract : EventArgs
public abstract class TextSnapshotChangedEventArgs : EventArgs
type TextSnapshotChangedEventArgs = class
    inherit EventArgs
Public MustInherit Class TextSnapshotChangedEventArgs
Inherits EventArgs
继承
TextSnapshotChangedEventArgs
派生

注解

这是类(如和)的基类 ContentTypeChangedEventArgs TextContentChangedEventArgsThis is the base class for classes such as ContentTypeChangedEventArgs and TextContentChangedEventArgs.

构造函数

TextSnapshotChangedEventArgs(ITextSnapshot, ITextSnapshot, Object)

为更改事件初始化的新实例 TextSnapshotChangedEventArgsInitializes a new instance of a TextSnapshotChangedEventArgs for a Change event.

属性

After

获取更改后的状态 ITextBufferGets the state of the ITextBuffer after the change.

AfterVersion

获取 ITextVersion 与关联的 n AfterGets the ITextVersionn associated with After.

Before

获取 ITextBuffer 发生更改之前的状态。Gets the state of the ITextBuffer before the change occurred.

BeforeVersion

获取与 ITextVersion 关联的 BeforeGets the ITextVersion associated with Before.

EditTag

获取由更改的发起方提供的任意对象。Gets an arbitrary object provided by the initiator of the changes.

适用于