ChartTitle 对象 (Excel)ChartTitle object (Excel)

代表图表标题。Represents the chart title.


使用Chart对象的**ChartTitle** 属性可返回ChartTitle对象。Use the ChartTitle property of the Chart object to return the ChartTitle object.

ChartTitle对象不存在, 不能使用, 除非图表的**HasTitle** 属性为TrueThe ChartTitle object doesn't exist and cannot be used unless the HasTitle property for the chart is True.


下面的示例为工作表Sheet1上嵌入的第一个图表添加标题。The following example adds a title to embedded chart one on the worksheet named Sheet1.

With Worksheets("sheet1").ChartObjects(1).Chart 
 .HasTitle = True 
 .ChartTitle.Text = "February Sales" 
End With



另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.