Share via


ITextBuffer.ChangeContentType, méthode

Modifie le IContentType pour cette ITextBuffer.

Espace de noms :  Microsoft.VisualStudio.Text
Assembly :  Microsoft.VisualStudio.Text.Data (dans Microsoft.VisualStudio.Text.Data.dll)

Syntaxe

'Déclaration
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
)

Paramètres

  • editTag
    Type : Object

    Un objet associé à cette transaction de modification.

Exceptions

Exception Condition
ArgumentNullException

newContentType a la valeur nullune référence null (Nothing en Visual Basic).

InvalidOperationException

Un autre objet d'ITextBufferEdit est actif pour cet ITextBuffer.

Sécurité .NET Framework

Voir aussi

Référence

ITextBuffer Interface

Microsoft.VisualStudio.Text, espace de noms