Share via


TextSelection.NewLine (Método)

Inserta un carácter de salto de línea en el punto activo.

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

Sintaxis

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

Parámetros

  • Count
    Tipo: Int32

    Opcional. Representa el número de caracteres NewLine que se van a insertar.

Comentarios

NewLine produce un error si el valor de Count es negativo, o es mayor o igual que 10000.

Ejemplos

Sub NewLineExample()
   ' Before running this example, open a text document.
   Dim objSel As TextSelection = DTE.ActiveDocument.Selection
   ' Go to first line in document and select it.
   objSel.GotoLine(1, True)
   ' Insert some new lines and some text.
   objSel.NewLine(3)
   objSel.Insert("A new line", vsInsertFlags.vsInsertFlagsInsertAtStart)
End Sub

Seguridad de .NET Framework

Vea también

Referencia

TextSelection Interfaz

EnvDTE (Espacio de nombres)