|
The TLF parser converts supported markup elements to TLF
classes so that they can be used in the text object model. These
markup elements are similar to the HTML tags of the same names.
For example, if you specify a <p> tag in
your text control’s content, then the parser converts it to a ParagraphElement
in the control’s TextFlow.
The following table describes the supported elements of the text
object model:
Element
|
Class
|
Description
|
div
|
DivElement
|
A division of text; can contain only div,
list, or p elements.
|
p
|
ParagraphElement
|
A paragraph; can contain any element except
div, list, or li.
|
a
|
LinkElement
|
A hypertext link, also known as an anchor;
can contain the tcy, span, img, tab, g, and br elements. This is
the only class in the text object model that supports Flex events.
|
tcy
|
TCYElement
|
A run of horizontal text, used in vertical
text such as Japanese; can contain the a, span, img, tab, g, or
br elements.
|
span
|
SpanElement
|
A run of text in a paragraph; cannot contain
other elements.
|
img
|
InlineGraphicElement
|
An image in a paragraph element.
|
tab
|
TabElement
|
A tab character.
|
br
|
BreakElement
|
A break character; text continues on the
next line, but does not start a new paragraph.
|
list
|
ListElement
|
An ordered or unordered list. Can be simple
list or nested. You can customize the bullets. Can contain li elements
(ListItemElement) or other list elements.
|
li
|
ListItemElement
|
List items within a list element. Can be
ordered or unordered, nested or flat lists. You can customize the
markers as well as other settings of each list item.
|
g
|
SubParagraphGroupElement
|
A group element. Used for grouping elements
in a paragraph. This lets you nest elements below the paragraph
level.
|
|
|
|