ChartSection object
Represents the individual colors included in the color scheme for a chart section object based on either a Standard, Legacy or Custom color scheme. The ColorSet object allows you to change a color element when the Chart color scheme is set to bqChartColorSchemeCustom (for a custom chart color scheme). It does not allow you to add or remove color element, and as a result, the size of the collection is always equal to seventeen.
This example shows you how to set the chart color scheme to a custom color scheme, changes the first color in the scheme from number 1 to number 10 (from blue to black), and applies the color changes.
ActiveDocument.Sections["Chart3"].ColorScheme = bqChartColorSchemeCustom ActiveDocument.Sections["Chart3"].Colors.Color1 = 10 ActiveDocument.Sections["Chart3"].Colors.ApplyColors()
ApplyColors()
Read-write: Color1–Color17