ITextBufferFactoryService::CreateTextBuffer Method (IContentType^)

 

Creates an empty ITextBuffer with the specified IContentType.

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

ITextBuffer^ CreateTextBuffer(
	IContentType^ contentType
)

Parameters

contentType
Type: Microsoft.VisualStudio.Utilities::IContentType^

The IContentType for the new ITextBuffer.

Return Value

Type: Microsoft.VisualStudio.Text::ITextBuffer^

An empty ITextBuffer with the given IContentType.

Exception Condition
ArgumentNullException

contentType is null.

Return to top
Show: