Flash textlayoutformat最后一行的左对齐
我设置Flash textlayoutformat最后一行的左对齐,flash,apache-flex,flash-builder,flex4.5,Flash,Apache Flex,Flash Builder,Flex4.5,我设置textLayoutFormat.textAlign=textAlign.JUSTIFY用于以下tlf sample text sample text sample text sample text sample text sample text sample text 但它看起来像这样 sample text sample text sample text sample text sample text sample text sample
textLayoutFormat.textAlign=textAlign.JUSTIFY代码>用于以下tlf
sample text sample text sample text
sample text sample text sample text
sample text
但它看起来像这样
sample text sample text sample text
sample text sample text sample text
sample text
我想为最后一行设置左对齐。使用textAlignLast
属性
例如:
产出:
sample text sample text sample text
sample text sample text sample text
sample text
请注意,textAlignLast
仅适用于对齐文本。使用textAlignLast
属性
例如:
产出:
sample text sample text sample text
sample text sample text sample text
sample text
请注意,textAlignLast
仅适用于对齐文本。textLayoutFormat.textAlign=textAlign.JUSTIFY;textLayoutFormat.textAlignLast=TextAlign.LEFT;我也在做同样的事情,但工作起来并不奇怪,您是否尝试将align和alignLast
应用到组件本身,而不是textlayoutformat?textlayoutformat.textlaygn=textlaygn.JUSTIFY;textLayoutFormat.textAlignLast=TextAlign.LEFT;我也这么做了,但它的工作方式并不奇怪,您是否尝试将align和alignLast
应用于组件本身而不是textlayoutformat?