Compartir a través de


EditPoint.LineDown (Método)

Desplaza el punto de edición hacia abajo el número de líneas especificado.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

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

Parámetros

  • Count
    Tipo: Int32

    Opcional. Número de líneas que se desplazará el punto de edición. El valor predeterminado es 1.

Comentarios

Si se llega al final del documento antes de contabilizarse el número de líneas especificado, el punto permanecerá al final del documento.

Si Count es negativo, LineDown se comporta de forma similar a LineUp.

Ejemplos

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

Seguridad de .NET Framework

Vea también

Referencia

EditPoint Interfaz

EnvDTE (Espacio de nombres)