Skip to content

Width (属性)

返回对象的宽度(以磅为单位)。只读。

返回值

Double

示例

javascript
/*下例显示 Sheet1 上的第一个图表单位标签的宽度。*/
function test() {
    let displayUnitLabel = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.Axes(xlValue).DisplayUnitLabel
    console.log(displayUnitLabel.Width)
}
javascript
/*本示例显示 Chart1 上单位标签的宽度。*/
function test() {
    let displayUnitLabel = Application.Charts.Item("Chart1").ChartObjects(1).Chart.Axes(xlValue).DisplayUnitLabel
    console.log(displayUnitLabel.Width)
}