置图形文本对齐方式 settextjustify
设置文本对齐方式 text-apgn
设置文本水平对齐方式 setHorizontalAlignment
段落文本的对齐方式有 ABEFG
设置文本的对齐方式 text-align
文本的水平对齐方式 Halighment
文本的垂直对齐方式 Valignment
文本的对齐方式 text-justify
返回文本的对齐方式 GetControlsAlignment
我们看一个例子,以了解如何使用样式表管理文本对齐方式。
Let's look at an example of how you can manage text alignment with a style sheet.
允许但设置该矩形的宽度的文本,并指定水平的文本对齐方式。
Allows however to set the width of the text rectangle and to specify the horizontal text-alignment.
居中对齐是最差的文本对齐方式。排列整齐,边缘分明的文本会明显增强其可读性(注意书页从不以居中方式对齐)。
It tends to be the weakest text alignment that you can choose, having a hard edge increases readability considerably (notice that book pages aren't center-aligned).
应用推荐