Partager via


IVsTextLineMarker.ResetSpan, méthode

Réinitialise la position du marqueur de texte.

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

Syntaxe

'Déclaration
Function ResetSpan ( _
    iStartLine As Integer, _
    iStartIndex As Integer, _
    iEndLine As Integer, _
    iEndIndex As Integer _
) As Integer
int ResetSpan(
    int iStartLine,
    int iStartIndex,
    int iEndLine,
    int iEndIndex
)
int ResetSpan(
    [InAttribute] int iStartLine, 
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndLine, 
    [InAttribute] int iEndIndex
)
abstract ResetSpan : 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int -> int
function ResetSpan(
    iStartLine : int, 
    iStartIndex : int, 
    iEndLine : int, 
    iEndIndex : int
) : int

Paramètres

  • iStartLine
    Type : Int32

    [in] ligne contenir le début du marqueur de texte.

  • iStartIndex
    Type : Int32

    [in] démarrant l'index de caractère pour le marqueur de texte dans la ligne. Cette valeur doit être inférieur ou égal à la longueur de la ligne.

  • iEndLine
    Type : Int32

    [in] ligne contenir la fin du marqueur de texte.

  • iEndIndex
    Type : Int32

    [in] index de caractère de fin de le marqueur de texte dans la ligne. Cette valeur doit être longueur de ligne.

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 IVsTextLineMarker::ResetSpan(
   [in] long iStartLine,
   [in] CharIndex iStartIndex,
   [in] long iEndLine
);

Utilisez cette méthode pour modifier l'étendue d'un marqueur de texte

Sécurité .NET Framework

Voir aussi

Référence

IVsTextLineMarker Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms