ITextBuffer::ChangeContentType Method (IContentType^, Object^)

 

Changes the IContentType for this ITextBuffer.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

void ChangeContentType(
	IContentType^ newContentType,
	Object^ editTag
)

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.

Return to top
Show: