ITextBufferFactoryService.CreateTextBuffer Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
CreateTextBuffer() |
Crea una interfaz ITextBuffer vacía con el "texto" de IContentType. |
CreateTextBuffer(IContentType) |
Crea una interfaz ITextBuffer vacía con la interfaz IContentType especificada. |
CreateTextBuffer(TextReader, IContentType) |
Crea un ITextBuffer objeto con el especificado |
CreateTextBuffer(String, IContentType) |
Crea una interfaz ITextBuffer con la interfaz IContentType especificada y la rellena con el texto determinado. |
CreateTextBuffer()
Crea una interfaz ITextBuffer vacía con el "texto" de IContentType.
public:
Microsoft::VisualStudio::Text::ITextBuffer ^ CreateTextBuffer();
public:
Microsoft::VisualStudio::Text::ITextBuffer ^ CreateTextBuffer();
Microsoft::VisualStudio::Text::ITextBuffer CreateTextBuffer();
public Microsoft.VisualStudio.Text.ITextBuffer CreateTextBuffer ();
abstract member CreateTextBuffer : unit -> Microsoft.VisualStudio.Text.ITextBuffer
Public Function CreateTextBuffer () As ITextBuffer
Devoluciones
Objeto ITextBuffer vacío.
Se aplica a
CreateTextBuffer(IContentType)
Crea una interfaz ITextBuffer vacía con la interfaz IContentType especificada.
public:
Microsoft::VisualStudio::Text::ITextBuffer ^ CreateTextBuffer(Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
public:
Microsoft::VisualStudio::Text::ITextBuffer ^ CreateTextBuffer(Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
Microsoft::VisualStudio::Text::ITextBuffer CreateTextBuffer(Microsoft::VisualStudio::Utilities::IContentType const & contentType);
public Microsoft.VisualStudio.Text.ITextBuffer CreateTextBuffer (Microsoft.VisualStudio.Utilities.IContentType contentType);
abstract member CreateTextBuffer : Microsoft.VisualStudio.Utilities.IContentType -> Microsoft.VisualStudio.Text.ITextBuffer
Public Function CreateTextBuffer (contentType As IContentType) As ITextBuffer
Parámetros
- contentType
- IContentType
IContentType de la nueva interfaz ITextBuffer.
Devoluciones
Un objeto vacío ITextBuffer con el contentType especificado.
Excepciones
contentType
es null.
Comentarios
Se puede llamar a este método en cualquier subproceso. Este método generará TextBufferCreated y ContentTypeChanged(ITextBuffer, IContentType, IContentType) en el subproceso al que se llamó.
Se aplica a
CreateTextBuffer(TextReader, IContentType)
Crea un ITextBuffer objeto con el especificado contentType
y lo rellena leyendo datos del TextReader especificado.
public:
Microsoft::VisualStudio::Text::ITextBuffer ^ CreateTextBuffer(System::IO::TextReader ^ reader, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
public Microsoft.VisualStudio.Text.ITextBuffer CreateTextBuffer (System.IO.TextReader reader, Microsoft.VisualStudio.Utilities.IContentType contentType);
abstract member CreateTextBuffer : System.IO.TextReader * Microsoft.VisualStudio.Utilities.IContentType -> Microsoft.VisualStudio.Text.ITextBuffer
Public Function CreateTextBuffer (reader As TextReader, contentType As IContentType) As ITextBuffer
Parámetros
- reader
- TextReader
TextReader desde el que se va a leer.
- contentType
- IContentType
contentType
para el texto contenido en la nueva interfaz ITextBuffer
Devoluciones
Objeto ITextBuffer con textReader especificado y contentType
.
Excepciones
contentType
es null.
Comentarios
Se puede llamar a este método en cualquier subproceso. Este método generará TextBufferCreated y ContentTypeChanged(ITextBuffer, IContentType, IContentType) en el subproceso al que se llamó.
Se aplica a
CreateTextBuffer(String, IContentType)
Crea una interfaz ITextBuffer con la interfaz IContentType especificada y la rellena con el texto determinado.
public:
Microsoft::VisualStudio::Text::ITextBuffer ^ CreateTextBuffer(System::String ^ text, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
public:
Microsoft::VisualStudio::Text::ITextBuffer ^ CreateTextBuffer(Platform::String ^ text, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
Microsoft::VisualStudio::Text::ITextBuffer CreateTextBuffer(std::wstring const & text, Microsoft::VisualStudio::Utilities::IContentType const & contentType);
public Microsoft.VisualStudio.Text.ITextBuffer CreateTextBuffer (string text, Microsoft.VisualStudio.Utilities.IContentType contentType);
abstract member CreateTextBuffer : string * Microsoft.VisualStudio.Utilities.IContentType -> Microsoft.VisualStudio.Text.ITextBuffer
Public Function CreateTextBuffer (text As String, contentType As IContentType) As ITextBuffer
Parámetros
- text
- String
Texto inicial que se va a agregar.
- contentType
- IContentType
IContentType de la nueva interfaz ITextBuffer.
Devoluciones
Objeto ITextBuffer con el texto y la interfaz IContentType especificados.
Excepciones
text
o contentType
es nulo.
Comentarios
Se puede llamar a este método en cualquier subproceso. Este método generará TextBufferCreated y ContentTypeChanged(ITextBuffer, IContentType, IContentType) en el subproceso al que se llamó.