This topic has not yet been rated - Rate this topic

IVsTextView.GetSelectionMode Method

Returns the current selection mode.

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

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop.TextSelMode
Returns TextSelMode enum value SM_STREAM or SM_BOX.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.