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
contentType
Tipo: Microsoft.VisualStudio.Utilities.IContentTypeThe IContentType for the new ITextBuffer.
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
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.