This section describes the text layout controls:
1. textblock's most basic text Control
Five font attributes can be configured.
For the textwraping attribute, "Wrap" is a line break, while nowrap is a line break (incorrect original book, correct it here ).
The textblock control can contain many controls, not just text. < Textblock textwraping = " Wrap " >
< Button > Split </ Button >
< Checkbox > Across </ Checkbox >
< Textbox > Multiple </ Textbox >
Lines
</ Textblock >
Accesstext, bold, hyperlink, italic, and underline have been removed. (Accesstext has no expected effect) < Textblock fontsize = " 18 " >
< Accesstext > T </ Accesstext > His < Italic > Is </ Italic > < Bold > Rather </ Bold >
< Underline > Messy </ Underline > . < Hyperlink > Www.example.com </ Hyperlink >
</ Textblock >
2. Text and whitespace
Here, whitespace refers to the carriage return character, that is, textblock ignores it. The carriage return line is displayed only when XML: Space = "preserve" is set in textblock: < Textblock fontsize = " 18 " XML: Space = " Preserve " >
< Accesstext > T </ Accesstext > His < Italic > Is </ Italic > < Bold > Rather </ Bold >
< Underline > Messy </ Underline > . < Hyperlink > Www.example.com </ Hyperlink >
</ Textblock >
Of course, it is generally not recommended to take the initiative to do this unless you directly copy a large segmentArticleCome here.
You can set XML: Space = "preserve" <Bold>Rather</Bold>.
You can set the textalignment = "Left"/right/center/justify attribute to control the text alignment in textblock. Justify is center alignment.
3. textflow is more powerful than textblock and provides five embedded container labels:
1) Paragraph
2) List
3) Table
4) floater
5) figure
Looking at these five containers in a rough way, this is nothing more than the migration of Five layout solutions in Word. Moreover, Microsoft's white paper said that textblock is much more efficient than textflow, try to use the latter.