IVsTextView.SetSelectionMode Method (TextSelMode)

 

Sets the selection mode.

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

int SetSelectionMode(
	TextSelMode iSelMode
)

Parameters

iSelMode
Type: Microsoft.VisualStudio.TextManager.Interop.TextSelMode

[in] Enumeration value specifying the selection mode.

Return Value

Type: System.Int32

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

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.

Return to top
Show: