height_in_shape属性

height_in_shape属性

表示形状与父形状上边框的垂直偏移量,以父形状高度的 1/4000 为单位。

注意事项

仅当此形状位于组或图表中时适用。

例子


if shape.is_in_group and shape.height_in_shape == 4000:
    shape.height_in_shape = 2000

定义:

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

也可以看看