ITextBuffer.ChangeContentType(IContentType, Object) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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.