IVsTextView.GetSelectionMode Method

Returns the current selection mode.

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

Syntax

'宣言
Function GetSelectionMode As TextSelMode
'使用
Dim instance As IVsTextView
Dim returnValue As TextSelMode

returnValue = instance.GetSelectionMode()
TextSelMode GetSelectionMode()
TextSelMode GetSelectionMode()
function GetSelectionMode() : TextSelMode

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop.TextSelMode

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextView::GetSelectionMode();

Use this method to determine whether stream or box selection is the current selection mode. For more information, see TextSelMode.

Permissions

See Also

Reference

IVsTextView Interface

IVsTextView Members

Microsoft.VisualStudio.TextManager.Interop Namespace