IVsTextView.ClearSelection(Int32) 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.
Clears the current selection.
public:
int ClearSelection(int fMoveToAnchor);
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
Parameters
- 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.
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::ClearSelection(
[in] BOOL fMoveToAnchor
);
The anchor position is the first location that the user selected with the mouse.