VsTextViewClass.GetCaretPos, méthode

Retourne la ligne et l'index de colonne de la position du curseur.

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

Syntaxe

'Déclaration
Public Overridable Function GetCaretPos ( _
    <OutAttribute> ByRef piLine As Integer, _
    <OutAttribute> ByRef piColumn As Integer _
) As Integer
public virtual int GetCaretPos(
    out int piLine,
    out int piColumn
)
public:
virtual int GetCaretPos(
    [OutAttribute] int% piLine, 
    [OutAttribute] int% piColumn
)
abstract GetCaretPos : 
        piLine:int byref * 
        piColumn:int byref -> int  
override GetCaretPos : 
        piLine:int byref * 
        piColumn:int byref -> int
public function GetCaretPos(
    piLine : int, 
    piColumn : int
) : int

Paramètres

  • piLine
    Type : Int32%

    [out] pointeur à un entier contenant la ligne, si la méthode réussit.

  • piColumn
    Type : Int32%

    [out] pointeur à un entier contenant la colonne, si la méthode réussit. Les coordonnées de Viewcol peuvent comprendre l'espace virtuel.

Valeur de retour

Type : Int32

Implémentations

IVsTextView.GetCaretPos(Int32%, Int32%)

Sécurité .NET Framework

Voir aussi

Référence

VsTextViewClass Classe

Microsoft.VisualStudio.TextManager.Interop, espace de noms