ApplyColors (Method)

Applies To:

ColorSet object

Description

Applies the color changes made to a color element associated with a custom chart scheme. This method is used in conjunction with the ColorSet (Object). The ApplyColors (Method) does not allow you to add or remove color elements.

Example:

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()