IVsTextView.SetSelectionMode(TextSelMode) Method

Definition

Sets the selection mode.

public:
 int SetSelectionMode(Microsoft::VisualStudio::TextManager::Interop::TextSelMode iSelMode);
public:
 int SetSelectionMode(Microsoft::VisualStudio::TextManager::Interop::TextSelMode iSelMode);
int SetSelectionMode(Microsoft::VisualStudio::TextManager::Interop::TextSelMode iSelMode);
public int SetSelectionMode (Microsoft.VisualStudio.TextManager.Interop.TextSelMode iSelMode);
abstract member SetSelectionMode : Microsoft.VisualStudio.TextManager.Interop.TextSelMode -> int
Public Function SetSelectionMode (iSelMode As TextSelMode) As Integer

Parameters

iSelMode
TextSelMode

[in] Enumeration value specifying the selection mode.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextView::SetSelectionMode(  
   [in] TextSelMode iSelMode  
);  

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

Applies to