Partager via


EditPoint2.LineDown, méthode (Int32)

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

Espace de noms :  EnvDTE80
Assembly :  EnvDTE80 (dans EnvDTE80.dll)

Syntaxe

'Déclaration
Sub LineDown ( _
    Count As Integer _
)
void LineDown(
    int Count
)
void LineDown(
    [InAttribute] int Count
)
abstract LineDown : 
        Count:int -> unit 
function LineDown(
    Count : int
)

Paramètres

  • Count
    Type : System.Int32
    Facultatif.Nombre de lignes correspondant au déplacement du point d'édition.La valeur par défaut est 1.

Implémentations

EditPoint.LineDown(Int32)

Notes

Si la fin du document est atteinte avant le nombre de lignes indiqué, le point d'édition reste à la fin du document.

Si Count est négatif, LineDown agit comme LineUp.

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

Sécurité .NET Framework

Voir aussi

Référence

EditPoint2 Interface

LineDown, surcharge

EnvDTE80, espace de noms