Freigeben über


TextContentChangingEventArgs Constructor

Initializes a new instance of TextContentChangingEventArgs to be passed during a Changing event.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
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>
)

Parameters

  • editTag
    Type: Object

    An arbitrary object associated with this change.

Exceptions

Exception Condition
ArgumentNullException

beforeSnapshot is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

TextContentChangingEventArgs Class

Microsoft.VisualStudio.Text Namespace