VsTextViewClass Methods

 

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

NameDescription
System_CAPS_pubmethodAddCommandFilter(IOleCommandTarget^, IOleCommandTarget^)

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

System_CAPS_pubmethodCenterColumns(Int32, Int32, Int32)

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

System_CAPS_pubmethodCenterLines(Int32, Int32)

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

System_CAPS_pubmethodClearSelection(Int32)

Clears the current selection.

System_CAPS_pubmethodCloseView()

Closes and unregisters a view with the view manager.

System_CAPS_pubmethodEnsureSpanVisible(TextSpan)

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

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBuffer(IVsTextLines^)

Returns the current contents of the text buffer.

System_CAPS_pubmethodGetCaretPos(Int32, Int32)

Returns the line and column index of the cursor position.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLineAndColumn(Int32, Int32, Int32)

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

System_CAPS_pubmethodGetLineHeight(Int32)

Returns the pixel height of a line.

System_CAPS_pubmethodGetNearestPosition(Int32, Int32, Int32, Int32)

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

System_CAPS_pubmethodGetPointOfLineColumn(Int32, Int32, array<POINT>^)

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

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

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

System_CAPS_pubmethodGetSelectedText(String^)

Returns a copy of the selected text.

System_CAPS_pubmethodGetSelection(Int32, Int32, Int32, Int32)

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

System_CAPS_pubmethodGetSelectionDataObject(IDataObject^)

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

System_CAPS_pubmethodGetSelectionMode()

Returns the current selection mode.

System_CAPS_pubmethodGetSelectionSpan(array<TextSpan>^)

Returns the text span associated with a selection.

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

Returns a specified stream of text in a string.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetWindowHandle()

Returns the window handle for this view.

System_CAPS_pubmethodGetWordExtent(Int32, Int32, UInt32, array<TextSpan>^)

Returns the current word extent.

System_CAPS_pubmethodHighlightMatchingBrace(UInt32, UInt32, array<TextSpan>^)

Highlights the matching brace in a language construct.

System_CAPS_pubmethodInitialize(IVsTextLines^, IntPtr, UInt32, array<INITVIEW>^)

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

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodPositionCaretForEditing(Int32, Int32)

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

System_CAPS_pubmethodRemoveCommandFilter(IOleCommandTarget^)

Removes a command filter from the chain of command filters.

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

Replaces a line of text.

System_CAPS_pubmethodRestrictViewRange(Int32, Int32, IVsViewRangeClient^)

Reduces the view’s range of visible/editable lines to a subset of the buffer’s lines.

System_CAPS_pubmethodSendExplicitFocus()

Sends explicit focus to the window.

System_CAPS_pubmethodSetBuffer(IVsTextLines^)

Associates a text buffer with the view.

System_CAPS_pubmethodSetCaretPos(Int32, Int32)

Sets the coordinates of the end point of a selection.

System_CAPS_pubmethodSetScrollPosition(Int32, Int32)

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

System_CAPS_pubmethodSetSelection(Int32, Int32, Int32, Int32)

Selects specified text.

System_CAPS_pubmethodSetSelectionMode(TextSelMode)

Sets the selection mode.

System_CAPS_pubmethodSetTopLine(Int32)

Sets the top line in the view to the baseline.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUpdateCompletionStatus(IVsCompletionSet^, UInt32)

Used for word completion control.

System_CAPS_pubmethodUpdateTipWindow(IVsTipWindow^, UInt32)

Updates the tip window.

System_CAPS_pubmethodUpdateViewFrameCaption()

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

Return to top
Show: