Compartir a través de


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

IOleCommandTarget

Standard OLE interface. Mainly 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

Reference

IVsTextBuffer

VsTextView

Other Resources

Figures Edit