Udostępnij za pośrednictwem


Metoda EditPoint.LineDown —

Przenosi punkt Edycja dół określoną liczbę wierszy.

Przestrzeń nazw:  EnvDTE
Zestaw:  EnvDTE (w EnvDTE.dll)

Składnia

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

Parametry

  • Count
    Typ: System.Int32
    Opcjonalne.Liczba wierszy, aby przejść do edycji punktu.Wartość domyślna to 1.

Uwagi

Jeżeli osiągnięto koniec dokumentu przed określoną liczbę wierszy, punkt pozostaje na końcu dokumentu.

Jeśli Count jest ujemny, a następnie LineDown wykonuje się podobnie do LineUp.

Przykłady

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

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

EditPoint Interfejs

Przestrzeń nazw EnvDTE