次の例は、新しいリッチテキスト段落スタイルオブジェクトを作成し、InterLineSpacing プロパティを設定します。
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.Currentdatabase
Dim doc As New NotesDocument(db)
Call doc.AppendItemValue("From", session.Username)
Call doc.AppendItemValue("subject", _
"Meeting agenda")
Dim rtpStyle As NotesrichTextParagraphStyle
Set rtpStyle = session.CreateRichTextParagraphStyle
Dim richText As New NotesRichTextItem(doc,"Body")
rtpStyle.InterLineSpacing = SPACING_DOUBLE
Call richText.AppendParagraphStyle(rtpStyle)
Call richText.AppendText("Where are we now?")
Call richText.AddNewLine(1)
Call richText.AppendText (" Where we go from here.")
Messagebox rtpStyle.InterLineSpacing
Call doc.Save(True, False)