ITextBuffer.ChangeContentType(IContentType, Object) Método

Definição

Altera o IContentType para isso ITextBuffer .

public:
 void ChangeContentType(Microsoft::VisualStudio::Utilities::IContentType ^ newContentType, System::Object ^ editTag);
public:
 void ChangeContentType(Microsoft::VisualStudio::Utilities::IContentType ^ newContentType, Platform::Object ^ editTag);
void ChangeContentType(Microsoft::VisualStudio::Utilities::IContentType const & newContentType, winrt::Windows::Foundation::IInspectable const & editTag);
public void ChangeContentType (Microsoft.VisualStudio.Utilities.IContentType newContentType, object editTag);
abstract member ChangeContentType : Microsoft.VisualStudio.Utilities.IContentType * obj -> unit
Public Sub ChangeContentType (newContentType As IContentType, editTag As Object)

Parâmetros

newContentType
IContentType

O novo IContentType.

editTag
Object

Um objeto arbitrário que será associado a essa transação de edição.

Exceções

newContentType é nulo.

Outro ITextBufferEdit objeto está ativo para isso ITextBuffer ou CheckEditAccess() retornaria false.

Aplica-se a