ChartTitle 属性 (Excel)ChartTitle.Text property (Excel)

返回或设置指定对象中的文本。Returns or sets the text for the specified object. 读/写 StringRead/write String.

语法Syntax

表达式文本expression.Text

_表达式_一个代表**ChartTitle** 对象的变量。expression A variable that represents a ChartTitle object.

示例Example

此示例设置 Chart1 的图表标题文本。This example sets the text for the chart title of Chart1.

With Charts("Chart1") 
 .HasTitle = True 
 .ChartTitle.Text = "First Quarter Sales" 
End With

支持和反馈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.