VsTextBufferClass.ReplaceLines, méthode

Gère la modification comme un flux de ligne, telle que la ligne arrêtant et se joindre de ligne.

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

Syntaxe

'Déclaration
Public Overridable Function ReplaceLines ( _
    iStartLine As Integer, _
    iStartIndex As Integer, _
    iEndLine As Integer, _
    iEndIndex As Integer, _
    pszText As IntPtr, _
    iNewLen As Integer, _
    <OutAttribute> pChangedSpan As TextSpan() _
) As Integer
public virtual int ReplaceLines(
    int iStartLine,
    int iStartIndex,
    int iEndLine,
    int iEndIndex,
    IntPtr pszText,
    int iNewLen,
    TextSpan[] pChangedSpan
)
public:
virtual int ReplaceLines(
    [InAttribute] int iStartLine, 
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndLine, 
    [InAttribute] int iEndIndex, 
    [InAttribute] IntPtr pszText, 
    [InAttribute] int iNewLen, 
    [OutAttribute] array<TextSpan>^ pChangedSpan
)
abstract ReplaceLines : 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int * 
        pszText:IntPtr * 
        iNewLen:int * 
        pChangedSpan:TextSpan[] byref -> int  
override ReplaceLines : 
        iStartLine:int * 
        iStartIndex:int * 
        iEndLine:int * 
        iEndIndex:int * 
        pszText:IntPtr * 
        iNewLen:int * 
        pChangedSpan:TextSpan[] byref -> int
public function ReplaceLines(
    iStartLine : int, 
    iStartIndex : int, 
    iEndLine : int, 
    iEndIndex : int, 
    pszText : IntPtr, 
    iNewLen : int, 
    pChangedSpan : TextSpan[]
) : int

Paramètres

  • iStartLine
    Type : Int32

    [in] à partir de la ligne.

  • iStartIndex
    Type : Int32

    [in] démarrant l'index de caractère dans la ligne. Doit être inférieur ou égal à la longueur de la ligne.

  • iEndLine
    Type : Int32

    [in] terminant la ligne.

  • iEndIndex
    Type : Int32

    [in] index de caractère de fin dans la ligne. Doit être inférieur ou égal à la longueur de la ligne.

  • pszText
    Type : IntPtr

    [in] pointeur en texte pour insérer.

  • iNewLen
    Type : Int32

    [in] longueur du texte récemment inséré.

Valeur de retour

Type : Int32

Implémentations

IVsTextLines.ReplaceLines(Int32, Int32, Int32, Int32, IntPtr, Int32, array<TextSpan[])

Sécurité .NET Framework

Voir aussi

Référence

VsTextBufferClass Classe

Microsoft.VisualStudio.TextManager.Interop, espace de noms