Share via


EditPoint.LineDown-Methode

Verschiebt den Bearbeitungspunkt um die angegebene Anzahl von Zeilen nach unten.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

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

Parameter

  • Count
    Typ: Int32

    Optional. Die Anzahl der Zeilen, um die der Bearbeitungspunkt verschoben werden soll. Standardwert: 1.

Hinweise

Wenn das Ende des Dokuments vor der angegebenen Anzahl von Zeilen erreicht wird, verbleibt der Punkt am Ende des Dokuments.

Wenn Count negativ ist, verhält sich LineDown ähnlich wie LineUp.

Beispiele

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

.NET Framework-Sicherheit

Siehe auch

Referenz

EditPoint Schnittstelle

EnvDTE-Namespace