This documentation is archived and is not being maintained.
Chart::ApplyPaletteColors Method
Visual Studio 2010
Sets the automatically assigned series and data point colors, to allow programmatic access at run time.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
When the Chart colors are automatically assigned at run time, there is no way to know what the colors will be prior to the time when the chart rendered; the Color property of an automatically assigned value will return Empty at this time.
If you call the ApplyPaletteColors method, the colors for the series and the data points will be set, which allows for programmatic access.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: