text_vertical_alignment属性

text_vertical_alignment属性

获取和设置形状的文本垂直对齐类型。

例子

from aspose.cells import TextAlignmentType

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

定义:

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

也可以看看