HasDisplayUnitLabel 属性

       

如果由 DisplayUnitDisplayUnitCustom 属性所指定的标志显示在指定轴上,则该值为 True。默认值为 TrueBoolean 类型,可读写。

示例

本示例将 Chart1 中数值轴上的单位设置为 500,但隐藏单位标志。

With Charts("Chart1").Axes(xlValue)
    .DisplayUnit = xlCustom
    .DisplayUnitCustom = 500
    .AxisTitle.Caption = "Rebate Amounts"
    .HasDisplayUnitLabel = False
End With