Inserting FormattedText

To insert a formattedText component:

  1. In the Design Structure Window of the desired file, locate the node in which you wish to insert a formattedText component.
  2. In the Component Palette, select Simple Components from the dropdown list, and then drag and drop the formattedText component to the parent node of your choice.

    The formattedText node is inserted and highlighted under the expanded parent node.

  3. In the Property Inspector, set the following attributes for the formattedText component:

Note: To use data binding, see Data Binding a Component Attribute.

Examples (UIX XML)


...
<formattedText text="This is the formattedText using instruction styleUsage." 
               styleUsage="instruction" />
...
<formattedText text="some text">
  <inlineStyle>
    <property name="color">red</property>
  </inlineStyle>
</formattedText>
...    

About FormattedText

Using RawText
Working with Simple and Miscellaneous Components

 

Copyright © 1997, 2004, Oracle. All rights reserved.