VSTextBuffer object

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The text buffer object represents a stream of Unicode text, which is generally associated with a file. A VsTextBuffer object can be used outside the context of the core editor, as in, a wizard.

The following table shows the interfaces of VSTextBuffer.

Method Description
IOleCommandTarget Standard OLE interface. Used for undo/redo handling in the buffer.
IPersistFile Standard OLE interface.
IPersistStream Standard OLE interface.
IVsCompoundAction Enables the creation of compounds actions (that is, actions that are grouped in a single undo/redo unit).
IVsPersistDocData Enables persistence of document data managed by the text buffer.
IVsTextBuffer Provides basic services; used by many clients.
IVsTextFind Used to search a buffer.
IVsTextLines Provides read and write capabilities using two-dimensional coordinates. Inherits from IVsTextBuffer.
IVsTextStream Provides read and write capabilities using one-dimensional coordinates. Inherits from IVsTextBuffer.
IVsTextScanner Provides fast, stream-oriented, sequential access to text in the buffer.
IVsUserData Provides access to a generic collection of properties. The most important property is the name, or moniker, of the buffer. You can store your own random data in the buffer with this interface by creating a GUID and using it as a key.
IConnectionPointContainer Supports connection points for events.

Remarks

The VSTextBuffer is usually found by a QueryInterface call on IVsTextBuffer. For more information, see Text buffer.

See also