Textblock wrap the content like <linebreak> in HTML <br/>
Good results ~ Haha
Let's take a look at how to align the text. The textalignment attribute has four left right center justify attributes.
Now we only present a right effect. If you are interested, contact us.
Effect
Let's take a look at the font-related attributes of textblock.
There are 6 fontfamily (fontsize) fontsize (fontstretch) fontstyle (fontweight), textdecorations = "underline"
Fontstyle and normal (normal), italic (italic)
Fontweight: normal (normal), bold (bold)
Textdecorations = "underline" indicates whether it is underlined.
So many practical exercises
<Textblock fontsize = "36" textwrapping = "Wrap">
<Run fontweight = "bold"> bold </run> <linebreak/>
<Run fontstyle = "italic"> italic </run> <linebreak/>
<Run foreground = "red"> I am red </run> <linebreak/>
<Run textdecorations = "underline"> I am an underline with a line. </run> <linebreak/>
<Run fontweight = "bold" fontstyle = "italic" foreground = "cyan" fontsize = "42"
Textdecorations = "underline"> I am a crossbreed --! </Run>
</Textblock>
The effect is as follows:
Good results. Let's take a look at some of the general attributes of fontfamily (font), there are many. I will copy some information for you. Please try it by yourself
<Textblock fontsize = "24">
<Run fontfamily = "Arial"> Arial </run> <linebreak/>
<Run fontfamily = "Arial black"> Arial black </run> <linebreak/>
<Run fontfamily = "calibri"> calibri </run> <linebreak/>
<Run fontfamily = "Comic Sans MS"> Comic Sans MS </run> <linebreak/>
<Run fontfamily = "Georgia"> there are still many fonts that I won't try one by one ~ </Run>
</Textblock>
The effect is as follows,
Hey. Success. Let's learn about the attributes of textblock. Thank you for your support .~