IVsTextLayer.CanReplaceLines(Int32, Int32, Int32, Int32, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si le nombre spécifié de caractères de remplacement peut être inséré dans des lignes.
public:
int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
public:
int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
int CanReplaceLines(int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
public int CanReplaceLines (int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iNewLen);
abstract member CanReplaceLines : int * int * int * int * int -> int
Public Function CanReplaceLines (iStartLine As Integer, iStartIndex As Integer, iEndLine As Integer, iEndIndex As Integer, iNewLen As Integer) As Integer
Paramètres
- iStartLine
- Int32
[in] Ligne de départ.
- iStartIndex
- Int32
dans Début de l’index de caractère dans la ligne (doit être < = longueur de la ligne).
- iEndLine
- Int32
[in] Ligne de fin.
- iEndIndex
- Int32
dans Fin de l’index de caractère dans la ligne (doit être < = longueur de la ligne).
- iNewLen
- Int32
[in] Nombre de caractères à insérer, le cas échéant.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Signature COM
À partir de textmgr. idl :
HRESULT IVsTextLayer::CanReplaceLines(
[in] long iStartLine,
[in] CharIndex iStartIndex,
[in] long iEndLine,
[in] CharIndex iEndIndex,
[in] long iNewLen
);