Partilhar via


Método IVsTextView.ClearSelection

Limpa a seleção atual.

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

Sintaxe

'Declaração
Function ClearSelection ( _
    fMoveToAnchor As Integer _
) As Integer
int ClearSelection(
    int fMoveToAnchor
)
int ClearSelection(
    [InAttribute] int fMoveToAnchor
)
abstract ClearSelection : 
        fMoveToAnchor:int -> int
function ClearSelection(
    fMoveToAnchor : int
) : int

Parâmetros

  • fMoveToAnchor
    Tipo: Int32

    [in] Se true, o cursor é colocado na âncora após a seleção atual está desmarcada. Se false, e em seguida, o cursor não é movido.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr.idl:

HRESULT IVsTextView::ClearSelection(
   [in] BOOL fMoveToAnchor
);

A posição de âncora é o primeiro local que o usuário selecionado com o mouse.

Segurança do .NET Framework

Consulte também

Referência

IVsTextView Interface

Namespace Microsoft.VisualStudio.TextManager.Interop