Partilhar via


IVsTextView.GetSelectionMode Method

Definition

Returns the current selection mode.

public:
 Microsoft::VisualStudio::TextManager::Interop::TextSelMode GetSelectionMode();
public:
 Microsoft::VisualStudio::TextManager::Interop::TextSelMode GetSelectionMode();
Microsoft::VisualStudio::TextManager::Interop::TextSelMode GetSelectionMode();
public Microsoft.VisualStudio.TextManager.Interop.TextSelMode GetSelectionMode ();
abstract member GetSelectionMode : unit -> Microsoft.VisualStudio.TextManager.Interop.TextSelMode
Public Function GetSelectionMode () As TextSelMode

Returns

Returns TextSelMode enum value SM_STREAM or SM_BOX.

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.

Applies to