Metodo EditPoint.LineDown

Sposta il punto di modifica verso il basso del numero di righe specificato.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

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

Parametri

  • Count
    Tipo: System.Int32
    Opzionale.Numero di righe in base a cui spostare il punto di modifica.Il valore predefinito è 1.

Note

Se si raggiunge la fine del documento prima del numero di righe specificato, il punto rimane alla fine del documento.

Se Count è negativo, LineDown si comporterà in modo simile a LineUp.

Esempi

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

EditPoint Interfaccia

Spazio dei nomi EnvDTE