CreateRichTextItem method

Creates a new rich text item on a document, using a name you specify, and returns the corresponding NotesRichTextItem object. When used with OLE automation, this method allows you to create a new rich text item and NotesRichTextItem object without using New.

Defined in
NotesDocument

Syntax
Set notesRichTextItem = notesDocument.CreateRichTextItem( name$ )

Parameter
name$
Return value
notesRichTextItem
Usage
For more information, see the NotesRichTextItem class.

Example
This script creates a new rich text item called ProjectDescription and adds a text value to it.

Dim doc As NotesDocument
Dim rtitem As NotesRichTextItem
'...set value of doc...
Set rtitem = doc.CreateRichTextItem( "ProjectDescription" )
Call rtitem.AppendText( "Cartoon book for children ages 9-12" )
Call doc.Save( False, True )

Related topic
NotesRichTextItem class