RichTextStyle (Java)

Represents rich-text attributes.

Syntax

public class RichTextStyle extends Base

Containment

Contained by: Session and RichTextItem

Properties

Bold through getBold and setBold

Color through getColor and setColor

Effects through getEffects and setEffects

Font through getFont and setFont

FontSize through getFontSize and setFontSize

IsDefault through isDefault

Italic through getItalic and setItalic

Parent through getParent

PassThruHTML through getPassThruHTML and setPassThruHTML

StrikeThrough through getStrikeThrough and setStrikeThrough

Underline through getUnderline and setUnderline

Methods

recycle

Creation and access

To create a new RichTextStyle object, use createRichTextStyle in Session.

Use a RichTextStyle object with appendStyle of RichTextItem. Text that follows a rich-text style assumes the attributes of the rich-text style.

At creation, all the RichTextStyle properties are STYLE_NO_CHANGE.

Example