TextContentChangingEventArgs 构造函数

初始化要在 Changing 事件期间传递的 TextContentChangingEventArgs 的新实例。

命名空间:  Microsoft.VisualStudio.Text
程序集:  Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)

语法

声明
Public Sub New ( _
    beforeSnapshot As ITextSnapshot, _
    editTag As Object, _
    cancelAction As Action(Of TextContentChangingEventArgs) _
)
public TextContentChangingEventArgs(
    ITextSnapshot beforeSnapshot,
    Object editTag,
    Action<TextContentChangingEventArgs> cancelAction
)
public:
TextContentChangingEventArgs(
    ITextSnapshot^ beforeSnapshot, 
    Object^ editTag, 
    Action<TextContentChangingEventArgs^>^ cancelAction
)
new : 
        beforeSnapshot:ITextSnapshot * 
        editTag:Object * 
        cancelAction:Action<TextContentChangingEventArgs> -> TextContentChangingEventArgs
public function TextContentChangingEventArgs(
    beforeSnapshot : ITextSnapshot, 
    editTag : Object, 
    cancelAction : Action<TextContentChangingEventArgs>
)

参数

  • editTag
    类型:Object

    与此更改相关联的任意一个对象。

异常

异常 条件
ArgumentNullException

beforeSnapshot 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参阅

参考

TextContentChangingEventArgs 类

Microsoft.VisualStudio.Text 命名空间