ITextBuffer::ChangeContentType Method (IContentType^, Object^)
Visual Studio 2015
Changes the IContentType for this ITextBuffer.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- newContentType
-
Type:
Microsoft.VisualStudio.Utilities::IContentType^
The new IContentType.
- editTag
-
Type:
System::Object^
An object associated with this edit transaction.
| Exception | Condition |
|---|---|
| ArgumentNullException | newContentType is null. |
| InvalidOperationException | Another ITextBufferEdit object is active for this ITextBuffer. |
Show: