Condividi tramite


VsTextView Interface

Definition

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.

public interface class VsTextView : Microsoft::VisualStudio::TextManager::Interop::IVsTextView
public interface class VsTextView : Microsoft::VisualStudio::TextManager::Interop::IVsTextView
__interface VsTextView : Microsoft::VisualStudio::TextManager::Interop::IVsTextView
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.VisualStudio.TextManager.Interop.VsTextViewClass))]
[System.Runtime.InteropServices.Guid("BB23A14B-7C61-469A-9890-A95648CED5E6")]
public interface VsTextView : Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.VisualStudio.TextManager.Interop.VsTextViewClass))]
[System.Runtime.InteropServices.Guid("BB23A14B-7C61-469A-9890-A95648CED5E6")]
[System.Runtime.InteropServices.ComVisible(false)]
public interface VsTextView : Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.VisualStudio.TextManager.Interop.VsTextViewClass))>]
[<System.Runtime.InteropServices.Guid("BB23A14B-7C61-469A-9890-A95648CED5E6")>]
type VsTextView = interface
    interface IVsTextView
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.VisualStudio.TextManager.Interop.VsTextViewClass))>]
[<System.Runtime.InteropServices.Guid("BB23A14B-7C61-469A-9890-A95648CED5E6")>]
[<System.Runtime.InteropServices.ComVisible(false)>]
type VsTextView = interface
    interface IVsTextView
Public Interface VsTextView
Implements IVsTextView
Derived
Attributes
Implements

Methods

AddCommandFilter(IOleCommandTarget, IOleCommandTarget)

Adds a command filter to the existing chain of command filters.

(Inherited from IVsTextView)
CenterColumns(Int32, Int32, Int32)

Places the specified column of text in the center of the view.

(Inherited from IVsTextView)
CenterLines(Int32, Int32)

Places the specified lines of text in the center of the view.

(Inherited from IVsTextView)
ClearSelection(Int32)

Clears the current selection.

(Inherited from IVsTextView)
CloseView()

Closes and unregisters a view with the view manager.

(Inherited from IVsTextView)
EnsureSpanVisible(TextSpan)

Ensures that text is in view, both vertically and horizontally.

(Inherited from IVsTextView)
GetBuffer(IVsTextLines)

Returns the current contents of the text buffer.

(Inherited from IVsTextView)
GetCaretPos(Int32, Int32)

Returns the line and column index of the cursor position.

(Inherited from IVsTextView)
GetLineAndColumn(Int32, Int32, Int32)

Converts a text stream position to a line and column index.

(Inherited from IVsTextView)
GetLineHeight(Int32)

Returns the pixel height of a line.

(Inherited from IVsTextView)
GetNearestPosition(Int32, Int32, Int32, Int32)

Converts a line and column index to a text stream position.

(Inherited from IVsTextView)
GetPointOfLineColumn(Int32, Int32, POINT[])

Returns the coordinates for the upper left corner of a particular line and column.

(Inherited from IVsTextView)
GetScrollInfo(Int32, Int32, Int32, Int32, Int32)

Returns the core text editor's scroll bar settings for the specified scroll bar.

(Inherited from IVsTextView)
GetSelectedText(String)

Returns a copy of the selected text.

(Inherited from IVsTextView)
GetSelection(Int32, Int32, Int32, Int32)

Returns the text span corresponding to the current selection, if there is one.

(Inherited from IVsTextView)
GetSelectionDataObject(IDataObject)

Returns a copy of the selected text in IDataObject interface format.

(Inherited from IVsTextView)
GetSelectionMode()

Returns the current selection mode.

(Inherited from IVsTextView)
GetSelectionSpan(TextSpan[])

Returns the text span associated with a selection.

(Inherited from IVsTextView)
GetTextStream(Int32, Int32, Int32, Int32, String)

Returns a specified stream of text in a string.

(Inherited from IVsTextView)
GetWindowHandle()

Returns the window handle for this view.

(Inherited from IVsTextView)
GetWordExtent(Int32, Int32, UInt32, TextSpan[])

Returns the current word extent.

(Inherited from IVsTextView)
HighlightMatchingBrace(UInt32, UInt32, TextSpan[])

Highlights the matching brace in a language construct.

(Inherited from IVsTextView)
Initialize(IVsTextLines, IntPtr, UInt32, INITVIEW[])

Creates the view and allows clients to specify one or more TextViewInitFlags options.

(Inherited from IVsTextView)
PositionCaretForEditing(Int32, Int32)

Puts the caret in a position suitable for editing a function.

(Inherited from IVsTextView)
RemoveCommandFilter(IOleCommandTarget)

Removes a command filter from the chain of command filters.

(Inherited from IVsTextView)
ReplaceTextOnLine(Int32, Int32, Int32, String, Int32)

Replaces line text.

(Inherited from IVsTextView)
RestrictViewRange(Int32, Int32, IVsViewRangeClient)

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(IVsTextLines)

Associates a text buffer with the view.

(Inherited from IVsTextView)
SetCaretPos(Int32, Int32)

Sets the coordinates of the end point of a selection.

(Inherited from IVsTextView)
SetScrollPosition(Int32, Int32)

Sets the core text editor's scroll bar settings for the specified scroll bar.

(Inherited from IVsTextView)
SetSelection(Int32, Int32, Int32, Int32)

Selects specified text.

(Inherited from IVsTextView)
SetSelectionMode(TextSelMode)

Sets the selection mode.

(Inherited from IVsTextView)
SetTopLine(Int32)

Sets the top line in the view to the baseline.

(Inherited from IVsTextView)
UpdateCompletionStatus(IVsCompletionSet, UInt32)

Used for word completion control.

(Inherited from IVsTextView)
UpdateTipWindow(IVsTipWindow, UInt32)

Updates the tip window.

(Inherited from IVsTextView)
UpdateViewFrameCaption()

Forces the view to update its frame window caption, such as "[Read only]".

(Inherited from IVsTextView)

Applies to