Compartir a través de


IVsTextView.ClearSelection(Int32) Method

Definition

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.

Applies to