VsTextView Interface


Manages the text view of an editor window. Contains methods to manage the text view. The view is essentially the editor window shown in the UI. See IVsTextView.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public interface VsTextView : IVsTextView

System_CAPS_pubmethodAddCommandFilter(IOleCommandTarget, IOleCommandTarget)

Adds a command filter to the existing chain of command filters.(Inherited from IVsTextView.)

System_CAPS_pubmethodCenterColumns(Int32, Int32, Int32)

Places the specified column of text in the center of the view.(Inherited from IVsTextView.)

System_CAPS_pubmethodCenterLines(Int32, Int32)

Places the specified lines of text in the center of the view.(Inherited from IVsTextView.)


Clears the current selection.(Inherited from IVsTextView.)


Closes and unregisters a view with the view manager.(Inherited from IVsTextView.)


Ensures that text is in view, both vertically and horizontally.(Inherited from IVsTextView.)


Returns the current contents of the text buffer.(Inherited from IVsTextView.)

System_CAPS_pubmethodGetCaretPos(Int32, Int32)

Returns the line and column index of the cursor position.(Inherited from IVsTextView.)

System_CAPS_pubmethodGetLineAndColumn(Int32, Int32, Int32)

Converts a text stream position to a line and column index.(Inherited from IVsTextView.)


Returns the pixel height of a line.(Inherited from IVsTextView.)

System_CAPS_pubmethodGetNearestPosition(Int32, Int32, Int32, Int32)

Converts a line and column index to a text stream position.(Inherited from IVsTextView.)

System_CAPS_pubmethodGetPointOfLineColumn(Int32, Int32, POINT[])

Returns the coordinates for the upper left corner of a particular line and column.(Inherited from IVsTextView.)

System_CAPS_pubmethodGetScrollInfo(Int32, Int32, Int32, Int32, Int32)

Returns the core text editor's scroll bar settings for the specified scroll bar.(Inherited from IVsTextView.)


Returns a copy of the selected text.(Inherited from IVsTextView.)

System_CAPS_pubmethodGetSelection(Int32, Int32, Int32, Int32)

Returns the text span corresponding to the current selection, if there is one.(Inherited from IVsTextView.)


Returns a copy of the selected text in IDataObject interface format.(Inherited from IVsTextView.)


Returns the current selection mode.(Inherited from IVsTextView.)


Returns the text span associated with a selection.(Inherited from IVsTextView.)

System_CAPS_pubmethodGetTextStream(Int32, Int32, Int32, Int32, String)

Returns a specified stream of text in a string.(Inherited from IVsTextView.)


Returns the window handle for this view.(Inherited from IVsTextView.)

System_CAPS_pubmethodGetWordExtent(Int32, Int32, UInt32, TextSpan[])

Returns the current word extent.(Inherited from IVsTextView.)

System_CAPS_pubmethodHighlightMatchingBrace(UInt32, UInt32, TextSpan[])

Highlights the matching brace in a language construct.(Inherited from IVsTextView.)

System_CAPS_pubmethodInitialize(IVsTextLines, IntPtr, UInt32, INITVIEW[])

Creates the view and allows clients to specify one or more TextViewInitFlags options.(Inherited from IVsTextView.)

System_CAPS_pubmethodPositionCaretForEditing(Int32, Int32)

Puts the caret in a position suitable for editing a function.(Inherited from IVsTextView.)


Removes a command filter from the chain of command filters.(Inherited from IVsTextView.)

System_CAPS_pubmethodReplaceTextOnLine(Int32, Int32, Int32, String, Int32)

Replaces line text.(Inherited from IVsTextView.)

System_CAPS_pubmethodRestrictViewRange(Int32, Int32, IVsViewRangeClient)

Reduces the view’s range of visible/editable lines to a subset of the buffer’s lines.(Inherited from IVsTextView.)


Sends explicit focus to the window.(Inherited from IVsTextView.)


Associates a text buffer with the view.(Inherited from IVsTextView.)

System_CAPS_pubmethodSetCaretPos(Int32, Int32)

Sets the coordinates of the end point of a selection.(Inherited from IVsTextView.)

System_CAPS_pubmethodSetScrollPosition(Int32, Int32)

Sets the core text editor's scroll bar settings for the specified scroll bar.(Inherited from IVsTextView.)

System_CAPS_pubmethodSetSelection(Int32, Int32, Int32, Int32)

Selects specified text.(Inherited from IVsTextView.)


Sets the selection mode.(Inherited from IVsTextView.)


Sets the top line in the view to the baseline.(Inherited from IVsTextView.)

System_CAPS_pubmethodUpdateCompletionStatus(IVsCompletionSet, UInt32)

Used for word completion control.(Inherited from IVsTextView.)

System_CAPS_pubmethodUpdateTipWindow(IVsTipWindow, UInt32)

Updates the tip window.(Inherited from IVsTextView.)


Forces the view to update its frame window caption, such as "[Read only]".(Inherited from IVsTextView.)

Return to top