The following example shows how you can set the line height on a Spark RichText control in Flex 4 by setting the lineHeight style.
{ 0 comments }
Just a bunch of Adobe Flex Examples
From the category archives:
The following example shows how you can set the line height on a Spark RichText control in Flex 4 by setting the lineHeight style.
{ 0 comments }
The following example shows how you can set the text indent on a Spark List control in Flex 4 by creating a custom item renderer using the RichText control and setting the textIndent style.
{ 3 comments }
The following example shows how you can dynamically add paragraphs to a TextFlow in a Spark RichText control by creating a new SpanElement (<span/>) and ParagraphElement (<p/>) object and then adding the spans and paragraphs to the textFlow object using the addChild() method.
Full code after the jump.
{ 0 comments }
The following example shows how you can set HTML text in a Spark RichText control in Flex 4 by converting the HTML string to a TextFlow object using the static TextConverter.importToFlow() method and setting the textFlow property.
Full code after the jump.
{ 4 comments }
The following example shows how you can use tab stops on a Spark RichText primitive in Flex 4 by setting the tabStops style.
Full code after the jump.
{ 1 comment }
The following example shows a few ways you can display text in a Spark RichText control in Flex 4 using the TextFlowUtil and TextConverter classes.
Full code after the jump.
{ 11 comments }
The following example shows how you can import a TextFlow object from an XML object in Flex 4 by using the static TextFlowUtil.importFromXML() method.
Full code after the jump.
{ 10 comments }
The following example shows how you can truncate text in the Spark RichText control in Flex 4 by setting the truncation property and specifying the maximum number of visible lines.
Full code after the jump.
{ 5 comments }