VSTextBuffer Object
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 the case of a wizard.
The following table shows the interfaces of VSTextBuffer.
Method |
Description |
---|---|
Standard OLE interface. Mainly used for undo/redo handling in the buffer. |
|
Standard OLE interface. |
|
Standard OLE interface. |
|
Enables the creation of compounds actions (that is, actions that are grouped in a single undo/redo unit). |
|
Enables persistence of document data managed by the text buffer. |
|
Provides basic services; used by many clients. |
|
Used to search a buffer. |
|
Provides read and write capabilities using two-dimensional coordinates. Inherits from IVsTextBuffer. |
|
Provides read and write capabilities using one-dimensional coordinates. Inherits from IVsTextBuffer. |
|
Provides fast, stream-oriented, sequential access to text in the buffer. |
|
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. |
|
Supports connection points for events. |
Remarks
The VSTextBuffer is usually found by a QueryInterface call on IVsTextBuffer. For more information, see Text Buffer.