AddChartAutoFormat 方法 (Excel Graph)AddChartAutoFormat method (Excel Graph)

向图表的可用自动套用格式列表中添加自定义的自动套用格式。Adds a custom chart autoformat to the list of available chart autoformats.

语法Syntax

表达式AddChartAutoFormat(名称说明)expression.AddChartAutoFormat (Name, Description)

expression 是必需的。expression Required. 一个返回**Application** 对象的表达式。An expression that returns an Application object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
NameName 必需Required StringString 自动套用格式的名称。The name of the autoformat.
DescriptionDescription 可选Optional 字符串String 自定义自动套用格式的说明。A description of the custom autoformat.

示例Example

以下示例添加新的自动套用格式。This example adds a new autoformat.

myChart.Application.AddChartAutoFormat _ 
 Name:="Presentation Chart"

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