다음을 통해 공유


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 네임스페이스