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