Compartilhar via


Método ITextBuffer.ChangeContentType

As alterações a IContentType para este ITextBuffer.

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

Sintaxe

'Declaração
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
)

Parâmetros

  • editTag
    Tipo: Object

    Um objeto associado a esta transação de edição.

Exceções

Exceção Condição
ArgumentNullException

newContentType é nulluma referência nula (Nothing no Visual Basic).

InvalidOperationException

Outro ITextBufferEdit objeto está ativo para este ITextBuffer.

Segurança do .NET Framework

Consulte também

Referência

ITextBuffer Interface

Namespace Microsoft.VisualStudio.Text