IVsTextView::ClearSelection Method (Int32)
Visual Studio 2015
Clears the current selection.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- fMoveToAnchor
-
Type:
System::Int32
[in] If true, the cursor is placed at the anchor after the current selection is cleared. If false, then the cursor is not moved.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsTextView::ClearSelection(
[in] BOOL fMoveToAnchor
);
The anchor position is the first location that the user selected with the mouse.
Show: