Skip to content
本页内容

Width (属性)

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

示例

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