ColorScheme (Property)

Applies To:

ChartSection object

Description:

Sets the chart color scheme for data points in the Chart section.

This property corresponds to the UseLegacyColors (Property) in Release 11.1.1.3 and earlier. If this property is set to bqChartColorSchemeLegacy for new charts, the colors in the Legacy color scheme (in Release 8.3 and earlier) are used. The value of UseLegacyColors property is mapped to ColorScheme property as follows:

Table 223. ColorScheme (Property) to UseLegacyColors (Property)

ColorSchemeUseLegacyColors
bqChartColorSchemeStandardfalse
bqChartColorSchemeLegacytrue
bqChartColorSchemeCustomfalse

Action:

Read-write, BqChartColorScheme

Constants:

The BqChartColorScheme constant group (read only) consists of the following values:

Example:

This example shows how to write the standard color scheme to the Console:

Console.Write(ActiveDocument.Sections["Chart"].ColorScheme = bqChartColorSchemeStandard)