TextSelection.NewLine(Int32) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Insere um caractere de quebra de linha no ponto ativo.
void NewLine(int Count = 1);
[System.Runtime.InteropServices.DispId(41)]
public void NewLine (int Count = 1);
[<System.Runtime.InteropServices.DispId(41)>]
abstract member NewLine : int -> unit
Public Sub NewLine (Optional Count As Integer = 1)
Parâmetros
- Count
- Int32
Opcional. Representa o número de caracteres de nova linha a serem inseridos.
- Atributos
Exemplos
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
Comentários
Se o valor de Count for negativo ou maior ou igual a 10.000, NewLine falhará.