VSTextView Object

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at VSTextView Object.

The text view is a window that allows users to view and edit the Unicode text of the text buffer. Essentially, the view is what most users refer to as the editor. Because the view is separated from the buffer by various text layers (word wrap, outlining text, and so on), the view is not guaranteed to be an exact representation of the text in the buffer. For more information about the text view, see Accessing theText View by Using the Legacy API

The following table shows the interfaces in the VsTextView object.

InterfaceDescription
IDropSourceStandard OLE interface.
IDropTargetStandard OLE interface.
IObjectWithSiteStandard OLE interface.
IOleCommandTargetStandard OLE interface.
IVsCompoundActionEnables the creation of compound actions (that is, actions that are grouped in a single undo/redo unit).
IVsTextViewProvides the basic methods for managing and accessing the view. IVsTextView is not thread safe.
IVsWindowPaneCreates and manages a window pane.
IVsLayeredTextViewInteracts with text layers.
IVsThreadSafeTextViewPerforms operations on the view from a different thread.

Figures Edit
VSTextBuffer Object
Accessing theText View by Using the Legacy API

Show: