EditPoint.LineDown(Int32) Méthode

Définition

Déplace le point d'édition du nombre spécifié de lignes vers le bas.

void LineDown(int Count = 1);
[System.Runtime.InteropServices.DispId(110)]
public void LineDown (int Count = 1);
[<System.Runtime.InteropServices.DispId(110)>]
abstract member LineDown : int -> unit
Public Sub LineDown (Optional Count As Integer = 1)

Paramètres

Count
Int32

Facultatif. Nombre de lignes correspondant au déplacement du point d'édition. La valeur par défaut est 1.

Attributs

Exemples

Sub LineDownExample()  
   Dim objTextDoc As TextDocument  
   Dim objEditPt As EditPoint, iCtr As Integer  

   ' Create a new text file.  
   DTE.ItemOperations.NewFile("General\Text File")  

   ' Get a handle to the new document and create an EditPoint.  
   objTextDoc = DTE.ActiveDocument.Object("TextDocument")  
   objEditPt = objTextDoc.StartPoint.CreateEditPoint  

   ' Insert ten lines of text.  
   For iCtr = 1 To 10  
      objeditpt.Insert("This is a test." & Chr(13))  
   Next iCtr  
   objEditPt.StartOfDocument()  
   objEditPt.LineDown(5)  
End Sub  

Remarques

Si la fin du document est atteinte avant le nombre de lignes spécifié, le point reste à la fin du document.

Si Count est négatif, s' LineDown exécute de la même façon que LineUp .

S’applique à