BCGSuite for MFC
void CBCGPChartVisualObject::SetColors ( const CBCGPChartTheme theme,
BOOL  bUseVisualManagerTheme = FALSE 
)
inline

Sets visual theme.

theme specifies a reference to a visual theme class which will be copied in. Use an overload with this parameter to set a custom visual theme.

Parameters
themeA reference to custom theme to set.
bUseVisualManagerThemeSpecify whether the Visual Manager-based colors will be used for plot area.

For example:

Copy
CBCGPChartTheme customTheme = m_chart.GetColors();
customTheme.m_brLegendEntryTextColor = CBCGPBrush(CBCGPColor::Green);
m_chart.SetColors(customTheme);