Skip to content
本页内容

Height (属性)

返回或设置一个 float 值,它代表对象的高度(以磅为单位)。

示例

python
#本示例将第一张工作表上的第一个图表的图例的高度设置为15磅
def test():
    Worksheets.Item(1).ChartObjects(1).Chart.Legend.Height = 15
python
#此示例显示图表工作表 Chart1 上的第一个图表中的图例高度
def test():
    print(Application.Charts.Item("Chart1").ChartObjects(1).Chart.Legend.Height)