VsTextViewClass.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:
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.