Table of contents
TOC
折叠目录
展开目录

Chart.ChartType 属性 (PowerPoint)Chart.ChartType Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回或设置图表类型。 XlChartType 类型,可读写。Returns or sets the chart type. Read/write XlChartType.

语法Syntax

表达式图表类型expression. ChartType

表达式_一个表示图表对象的变量。_expression A variable that represents a Chart object.

注解Remarks

某些图表类型对数据透视图无效。Some chart types are not available for PivotChart reports.

示例Example

请注意 尽管下面的代码适用于 Microsoft Word 中,您可以随时修改将其应用到 PowerPoint。Note Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

当图表为二维气泡图时,以下示例将第一个图表组中的气泡大小设置为默认大小的 200%。The following example sets the bubble size in chart group one to 200% of the default size if the chart is a 2-D bubble chart.

With ActiveDocument.InlineShapes(1).Chart 
    If .ChartType = xlBubble Then 
        .ChartGroups(1).BubbleScale = 200 
    End If 
End With

另请参阅See also

概念Concepts

Chart 对象Chart Object

© 2018 Microsoft