主题
VerticalAlignment (属性)
返回或设置一个 Any 值,它代表指定对象的垂直对齐方式。
说明
此属性的值可以设置为 XlVAlign 常量之一。
示例
python
#此示例显示查找条件中的垂直对齐方式是否为 xlVAlignDistributed
def test():
print(Application.FindFormat.VerticalAlignment == xlVAlignDistributed)
python
#此示例将替换条件设置为向下垂直对齐
def test():
Application.ReplaceFormat.VerticalAlignment = xlVAlignBottom