Freigeben über


ITextBufferFactoryService.CreateTextBuffer-Methode (IContentType)

Erstellt einen leeren ITextBuffer mit dem angegebenen IContentType.

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

Syntax

'Declaration
Function CreateTextBuffer ( _
    contentType As IContentType _
) As ITextBuffer
ITextBuffer CreateTextBuffer(
    IContentType contentType
)
ITextBuffer^ CreateTextBuffer(
    IContentType^ contentType
)
abstract CreateTextBuffer : 
        contentType:IContentType -> ITextBuffer
function CreateTextBuffer(
    contentType : IContentType
) : ITextBuffer

Parameter

Rückgabewert

Typ: Microsoft.VisualStudio.Text.ITextBuffer
Eine leere ITextBuffer mit dem angegebenen IContentType.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

contentType ist nullein Nullverweis (Nothing in Visual Basic).

.NET Framework-Sicherheit

Siehe auch

Referenz

ITextBufferFactoryService Schnittstelle

CreateTextBuffer-Überladung

Microsoft.VisualStudio.Text-Namespace