VsTextViewClass.ClearSelection(Int32) Method

Definition

Clears the current selection.

public:
 virtual int ClearSelection(int fMoveToAnchor) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::ClearSelection;
public:
 virtual int ClearSelection(int fMoveToAnchor);
public:
 virtual int ClearSelection(int fMoveToAnchor) = Microsoft::VisualStudio::TextManager::Interop::IVsTextView::ClearSelection;
 virtual int ClearSelection(int fMoveToAnchor);
public virtual int ClearSelection (int fMoveToAnchor);
abstract member ClearSelection : int -> int
override this.ClearSelection : int -> int
Public Overridable 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.

Implements

Applies to