HasLegend 属性

       

如果图表有图例,则该值为 TrueBoolean 类型,可读写。

示例

本示例打开图表的图例,并将图例字体颜色设置为蓝色。

With myChart
    .HasLegend = True
    .Legend.Font.ColorIndex = 5
End With