Udostępnij za pośrednictwem


Metoda EditPoint2.LineDown — (Int32)

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

Przestrzeń nazw:  EnvDTE80
Zestaw:  EnvDTE80 (w EnvDTE80.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.Wskaż liczbę wierszy, aby przejść do edycji.Wartość domyślna to 1.

Uwagi

Po osiągnięciu końca dokumentu przed określoną liczbę wierszy punktu pozostaje na końcu dokumentu.

Jeśli Count jest ujemna, 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

EditPoint2 Interfejs

Przeciążenie LineDown

Przestrzeń nazw EnvDTE80