VsTextViewClass.ClearSelection Method

Clears the current selection.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
Public Overridable Function ClearSelection ( _
    fMoveToAnchor As Integer _
) As Integer
public virtual int ClearSelection(
    int fMoveToAnchor
)
public:
virtual int ClearSelection(
    [InAttribute] int fMoveToAnchor
)
abstract ClearSelection : 
        fMoveToAnchor:int -> int 
override ClearSelection : 
        fMoveToAnchor:int -> int 
public function ClearSelection(
    fMoveToAnchor : int
) : int

Parameters

  • fMoveToAnchor
    Type: System.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.

Return Value

Type: System.Int32

Implements

IVsTextView.ClearSelection(Int32)

.NET Framework Security

See Also

Reference

VsTextViewClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace