IVsTextView.ClearSelection(Int32) Method
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.
Clears the current selection.
public:
int ClearSelection(int fMoveToAnchor);
C++/CX
public:
int ClearSelection(int fMoveToAnchor);
int ClearSelection(int fMoveToAnchor);
public int ClearSelection(int fMoveToAnchor);
abstract member ClearSelection : int -> int
Public Function ClearSelection (fMoveToAnchor As Integer) As Integer
- fMoveToAnchor
- 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.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
cpp#
HRESULT IVsTextView::ClearSelection(
[in] BOOL fMoveToAnchor
);
The anchor position is the first location that the user selected with the mouse.
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |