다음을 통해 공유


ITextBuffer.ChangeContentType 메서드

ITextBufferIContentType을 변경합니다.

네임스페이스:  Microsoft.VisualStudio.Text
어셈블리:  Microsoft.VisualStudio.Text.Data(Microsoft.VisualStudio.Text.Data.dll)

구문

‘선언
Sub ChangeContentType ( _
    newContentType As IContentType, _
    editTag As Object _
)
void ChangeContentType(
    IContentType newContentType,
    Object editTag
)
void ChangeContentType(
    IContentType^ newContentType, 
    Object^ editTag
)
abstract ChangeContentType : 
        newContentType:IContentType * 
        editTag:Object -> unit
function ChangeContentType(
    newContentType : IContentType, 
    editTag : Object
)

매개 변수

  • editTag
    형식: Object

    이 편집 트랜잭션과 관련 된 개체입니다.

예외

예외 조건
ArgumentNullException

newContentType가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

InvalidOperationException

다른 ITextBufferEdit 개체에 대해 활성입니다 ITextBuffer.

.NET Framework 보안

참고 항목

참조

ITextBuffer 인터페이스

Microsoft.VisualStudio.Text 네임스페이스