This topic has not yet been rated - Rate this topic

IVsTextView.SetSelectionMode Method

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: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.