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

ChartGroup.SplitValue 属性 (PowerPoint)ChartGroup.SplitValue Property (PowerPoint)

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

返回或设置分隔复合饼图或复合饼图条形图表的两部分的临界值。读/写variant 类型的值Returns or sets the threshold value separating the two sections of either a pie-of-pie chart or a bar-of-pie chart. Read/write Variant.

语法Syntax

表达式SplitValueexpression. SplitValue

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

示例Example

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

以下示例以数值拆分图表的两部分,在主饼图部分中合并所有小于 10 的数值,并在第二部分中显示这些数值。必须在复合饼图或复合条饼图上运行该示例。The following example splits the two sections of the chart by value, combining all values under 10 in the primary pie and displaying them in the secondary section. You must run this example on either a pie-of-pie chart or a bar-of-pie chart.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.ChartGroups(1)

            .SplitType = xlSplitByValue

            .SplitValue = 10

            .VaryByCategories = True

        End With

    End If

End With

另请参阅See also

概念Concepts

ChartGroup 对象ChartGroup Object

© 2018 Microsoft