主题
Height (属性)
返回或设置一个 float 值,它代表对象的高度(以磅为单位)。
示例
python
#本示例显示 Chart1 中的绘图区的高度
def test():
plotArea = Application.Charts.Item("Chart1").ChartObjects(1).Chart.PlotArea
print(plotArea.Height)
python
#下例将 Sheet1 上的第一个图表绘图区的高度设置为300磅
def test():
plotArea = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.PlotArea
plotArea.Height = 300