Compartilhar via


Método ITextBufferFactoryService.CreateTextBuffer (IContentType)

Cria um vazio ITextBuffer com a versão especificada IContentType.

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

Sintaxe

'Declaração
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

Parâmetros

Valor de retorno

Tipo: Microsoft.VisualStudio.Text.ITextBuffer
Um vazio ITextBuffer com o dado IContentType.

Exceções

Exceção Condição
ArgumentNullException

contentType é nulluma referência nula (Nothing no Visual Basic).

Segurança do .NET Framework

Consulte também

Referência

ITextBufferFactoryService Interface

Sobrecargas CreateTextBuffer

Namespace Microsoft.VisualStudio.Text