Share via


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.

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

Syntax

'Declaration
<GuidAttribute("BB23A14B-7C61-469A-9890-A95648CED5E6")> _
Public Interface VsTextView _
    Inherits IVsTextView
[GuidAttribute("BB23A14B-7C61-469A-9890-A95648CED5E6")]
public interface VsTextView : IVsTextView
[GuidAttribute(L"BB23A14B-7C61-469A-9890-A95648CED5E6")]
public interface class VsTextView : IVsTextView
[<GuidAttribute("BB23A14B-7C61-469A-9890-A95648CED5E6")>]
type VsTextView =  
    interface
        interface IVsTextView
    end
public interface VsTextView extends IVsTextView

The VsTextView type exposes the following members.

Methods

  Name Description
Public method AddCommandFilter Adds a command filter to the existing chain of command filters. (Inherited from IVsTextView.)
Public method CenterColumns Places the specified column of text in the center of the view. (Inherited from IVsTextView.)
Public method CenterLines Places the specified lines of text in the center of the view. (Inherited from IVsTextView.)
Public method ClearSelection Clears the current selection. (Inherited from IVsTextView.)
Public method CloseView Closes and unregisters a view with the view manager. (Inherited from IVsTextView.)
Public method EnsureSpanVisible Ensures that text is in view, both vertically and horizontally. (Inherited from IVsTextView.)
Public method GetBuffer Returns the current contents of the text buffer. (Inherited from IVsTextView.)
Public method GetCaretPos Returns the line and column index of the cursor position. (Inherited from IVsTextView.)
Public method GetLineAndColumn Converts a text stream position to a line and column index. (Inherited from IVsTextView.)
Public method GetLineHeight Returns the pixel height of a line. (Inherited from IVsTextView.)
Public method GetNearestPosition Converts a line and column index to a text stream position. (Inherited from IVsTextView.)
Public method GetPointOfLineColumn Returns the coordinates for the upper left corner of a particular line and column. (Inherited from IVsTextView.)
Public method GetScrollInfo Returns the core text editor's scroll bar settings for the specified scroll bar. (Inherited from IVsTextView.)
Public method GetSelectedText Returns a copy of the selected text. (Inherited from IVsTextView.)
Public method GetSelection Returns the text span corresponding to the current selection, if there is one. (Inherited from IVsTextView.)
Public method GetSelectionDataObject Returns a copy of the selected text in IDataObject interface format. (Inherited from IVsTextView.)
Public method GetSelectionMode Returns the current selection mode. (Inherited from IVsTextView.)
Public method GetSelectionSpan Returns the text span associated with a selection. (Inherited from IVsTextView.)
Public method GetTextStream Returns a specified stream of text in a string. (Inherited from IVsTextView.)
Public method GetWindowHandle Returns the window handle for this view. (Inherited from IVsTextView.)
Public method GetWordExtent Returns the current word extent. (Inherited from IVsTextView.)
Public method HighlightMatchingBrace Highlights the matching brace in a language construct. (Inherited from IVsTextView.)
Public method Initialize Creates the view and allows clients to specify one or more TextViewInitFlags options. (Inherited from IVsTextView.)
Public method PositionCaretForEditing Puts the caret in a position suitable for editing a function. (Inherited from IVsTextView.)
Public method RemoveCommandFilter Removes a command filter from the chain of command filters. (Inherited from IVsTextView.)
Public method ReplaceTextOnLine Replaces line text. (Inherited from IVsTextView.)
Public method RestrictViewRange Method information is not provided. Method is not implemented. (Inherited from IVsTextView.)
Public method SendExplicitFocus Sends explicit focus to the window. (Inherited from IVsTextView.)
Public method SetBuffer Associates a text buffer with the view. (Inherited from IVsTextView.)
Public method SetCaretPos Sets the coordinates of the end point of a selection. (Inherited from IVsTextView.)
Public method SetScrollPosition Sets the core text editor's scroll bar settings for the specified scroll bar. (Inherited from IVsTextView.)
Public method SetSelection Selects specified text. (Inherited from IVsTextView.)
Public method SetSelectionMode Sets the selection mode. (Inherited from IVsTextView.)
Public method SetTopLine Sets the top line in the view to the baseline. (Inherited from IVsTextView.)
Public method UpdateCompletionStatus Used for word completion control. (Inherited from IVsTextView.)
Public method UpdateTipWindow Updates the tip window. (Inherited from IVsTextView.)
Public method UpdateViewFrameCaption Forces the view to update its frame window caption, such as "[Read only]". (Inherited from IVsTextView.)

Top

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace