ITextBuffer.ChangeContentType(IContentType, Object) Метод

Определение

Изменяет тип IContentType для данного буфера 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)

Параметры

newContentType
IContentType

Новый объект IContentType.

editTag
Object

Произвольный объект, который будет связан с этой транзакцией изменения.

Исключения

Параметр newContentType имеет значение null.

Другой ITextBufferEdit объект активен для этого объекта ITextBuffer или CheckEditAccess() возвращает значение false.

Применяется к