IVsTextView.SetSelectionMode(TextSelMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.