Causes the setting of the automatically assigned series and data point colors to allow programmatic access at runtime.
Applies palette colors to series or data points.
Visual Basic (Declaration) | |
---|---|
Public Sub ApplyPaletteColors() |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void ApplyPaletteColors() |
When the chart colors are automatically assigned at runtime, there is no way to know what the colors will be prior to chart rendering, and the Color property of an automatically assigned value will return Color.Empty at this time.
Calling the ApplyPaletteColors method will cause the setting of the colors for the series and the data points, allowing for programmatic access.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family