Skip to content

Count (属性)

返回一个 Long 值,它代表集合中对象的数量。

示例

javascript
/*本示例显示工作表 Sheet1 中第一张图表的坐标轴的数量。*/
function test() {
    let axes = Application.Sheets.Item("Sheet1").ChartObjects(1).Chart.Axes()
    console.log(`坐标轴的数量:${axes.Count}`)
}