Skip to content
本页内容

Delete (方法)

删除对象。

返回值

Any

示例

python
#以下示例删除 Chart1 上数值轴上的单位标签
def test():
    displayUnitLabel = Application.Charts.Item("Chart1").ChartObjects(1).Chart.Axes(xlValue).DisplayUnitLabel
    displayUnitLabel.Delete()
python
#下例删除 Sheet1 上的第一个图表数值轴上的单位标签
def test():
    displayUnitLabel = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.Axes(xlValue).DisplayUnitLabel
    displayUnitLabel.Delete()