text_horizontal_alignment属性

text_horizontal_alignment属性

获取和设置形状的文本水平对齐类型。

例子

from aspose.cells import TextAlignmentType

if shape.text_horizontal_alignment == TextAlignmentType.BOTTOM:
    shape.text_horizontal_alignment = TextAlignmentType.CENTER

定义:

@property
def text_horizontal_alignment(self):
    ...
@text_horizontal_alignment.setter
def text_horizontal_alignment(self, value):
    ...

也可以看看