IVsTextView.PositionCaretForEditing, méthode

Place le signe insertion dans une position appropriée pour modifier une fonction.

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

Syntaxe

'Déclaration
Function PositionCaretForEditing ( _
    iLine As Integer, _
    cIndentLevels As Integer _
) As Integer
int PositionCaretForEditing(
    int iLine,
    int cIndentLevels
)
int PositionCaretForEditing(
    [InAttribute] int iLine, 
    [InAttribute] int cIndentLevels
)
abstract PositionCaretForEditing : 
        iLine:int * 
        cIndentLevels:int -> int
function PositionCaretForEditing(
    iLine : int, 
    cIndentLevels : int
) : int

Paramètres

  • iLine
    Type : Int32

    [in] entier contenant la ligne pour positionner le signe insertion (curseur) en fonction.

  • cIndentLevels
    Type : Int32

    [in] nombre de niveaux de retrait.

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::PositionCaretForEditing(
   [in] long iLine,
   [in] long cIndentLevels
);

Cette méthode place le signe insertion en position appropriée pour modifier une fonction. S'il y a texte sur la ligne, le signe insertion va au premier espace blanc non. Sinon, cette méthode crée le nombre approprié de mises en retrait (cIndentLevels) en fonction de les paramètres de langue et les emplacements actuels le signe insertion à cet emplacement. Aucun centrer n'est effectué.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextView Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms