addNewLine (NotesRichTextItem - JavaScript)

Appends one or more new lines (carriage returns) to a rich text item.

Defined in

NotesRichTextItem

Syntax

addNewLine() : void

addNewLine(count:int) : void

addNewLine(count:int, newparagraph:boolean) : void

Parameter Description
count The number of new lines to append.
newparagraph If true (default), forces the new line to be a paragraph separator. If false, the new line is added, but does not force a new paragraph.

Usage

By default the insertion occurs at the end of the item. You can change the insertion point with beginInsert and endInsert. In an open document in edit mode (the NotesDocument via NotesUIDocument.Document), changes made to rich text will not appear on screen immediately as they would with fields of other types. There is no method to cause this update to occur. You must close and reopen the document to see changes.