JAVA/CORBA CLASSES


Working with a rich text item in Java classes
Example

The RichTextItem class inherits from Item and so has the same properties and methods. RichTextItem has methods for working with rich text and embedded objects. If you do not need the additional methods, you can access a rich text item as either an Item or RichTextItem object.

When a rich text item is the return value of a method such as getFirstItem in Document and you want to use the rich text methods, you must cast the return value to RichTextItem.

The NotesRichTextItem methods are:


Use createRichTextItem in Document to create a rich text item.

Use createRichTextParagraphStyle and createRichTextStyle in Session to create RichTextParagraphStyle and RichTextStyle objects. Use getTabs in RichTextParagraphStyle to get a vector of RichTextTab objects. The paragraph styles affect alignment, interline spacing, spacing above, spacing below, left margin, right margin, first line left margin, pagination, and tabs (position and type). The text styles affect bold, italics, color, special effects, font type, font size, underlines, and strike through.

Example
See Also