IVsTextLines.ReloadLines, méthode
Remplace le texte sans supprimer des marques.
Espace de noms : Microsoft.VisualStudio.TextManager.Interop
Assembly : Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)
Syntaxe
'Déclaration
Function ReloadLines ( _
iStartLine As Integer, _
iStartIndex As Integer, _
iEndLine As Integer, _
iEndIndex As Integer, _
pszText As IntPtr, _
iNewLen As Integer, _
<OutAttribute> pChangedSpan As TextSpan() _
) As Integer
int ReloadLines(
int iStartLine,
int iStartIndex,
int iEndLine,
int iEndIndex,
IntPtr pszText,
int iNewLen,
TextSpan[] pChangedSpan
)
int ReloadLines(
[InAttribute] int iStartLine,
[InAttribute] int iStartIndex,
[InAttribute] int iEndLine,
[InAttribute] int iEndIndex,
[InAttribute] IntPtr pszText,
[InAttribute] int iNewLen,
[OutAttribute] array<TextSpan>^ pChangedSpan
)
abstract ReloadLines :
iStartLine:int *
iStartIndex:int *
iEndLine:int *
iEndIndex:int *
pszText:IntPtr *
iNewLen:int *
pChangedSpan:TextSpan[] byref -> int
function ReloadLines(
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. Les doivent être les que ou égale à la longueur de la ligne.
pszText
Type : IntPtr[in] pointeur ou référence au texte à l'insertion.
iNewLen
Type : Int32[in] longueur du texte récemment inséré.
pChangedSpan
Type : array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][] la plage du nouveau texte insérée. Décrit un point de départ et un point de fin, en termes de ligne et index.
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 IVsTextLines::ReloadLines(
[in] long iStartLine,
[in] CharIndex iStartIndex,
[in] long iEndLine,
[in] CharIndex iEndIndex,
[in] LPCWSTR pszText,
[in] long iNewLen,
[out] TextSpan * pChangedSpan
);
Cette méthode est similaire à l'ReplaceLines, mais elle remplace le texte sans supprimer des marques. Utilisez cette méthode pour les circonstances particulières, par exemple lorsqu'une mémoire tampon est rechargée à partir du disque et vous ne souhaitez pas supprimer toutes les marques (par exemple, points d'arrêt) ou lorsqu'un Assistant substitue une section particulière de code.
Sécurité .NET Framework
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.