ITextBufferFactoryService::CreateTextBuffer Method (IContentType^)
Visual Studio 2015
Creates an empty ITextBuffer with the specified IContentType.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
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. |
Show: