Share via


IVsTextView.SetSelection, méthode

Selects a spécifié le texte.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
Function SetSelection ( _
    iAnchorLine As Integer, _
    iAnchorCol As Integer, _
    iEndLine As Integer, _
    iEndCol As Integer _
) As Integer
int SetSelection(
    int iAnchorLine,
    int iAnchorCol,
    int iEndLine,
    int iEndCol
)
int SetSelection(
    [InAttribute] int iAnchorLine, 
    [InAttribute] int iAnchorCol, 
    [InAttribute] int iEndLine, 
    [InAttribute] int iEndCol
)
abstract SetSelection : 
        iAnchorLine:int * 
        iAnchorCol:int * 
        iEndLine:int * 
        iEndCol:int -> int
function SetSelection(
    iAnchorLine : int, 
    iAnchorCol : int, 
    iEndLine : int, 
    iEndCol : int
) : int

Paramètres

  • iAnchorLine
    Type : Int32

    [in] ancrez la position de ligne pour la sélection.

  • iAnchorCol
    Type : Int32

    [in] ancrez la position de la colonne pour la sélection. Les coordonnées de Viewcol peuvent comprendre l'espace virtuel.

  • iEndLine
    Type : Int32

    [in] terminez la position de ligne pour la sélection.

  • iEndCol
    Type : Int32

    [in] terminez la position de la colonne pour la sélection. Les coordonnées de Viewcol peuvent comprendre l'espace virtuel.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

HRESULT IVsTextView::SetSelection(
   [in] long iAnchorLine,
   [in] ViewCol iAnchorCol,
   [in] long iEndLine,
   [in] ViewCol iEndCol
);

Sécurité .NET Framework

Voir aussi

Référence

IVsTextView Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms