Dundas Chart for ASP.NET
Color Property
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > LegendItem Class : Color Property


Gets or sets the color of a legend item.


Legend item color.

Syntax

Visual Basic (Declaration)  
Public Property Color As Color
Visual Basic (Usage) Copy Code
Dim instance As LegendItem
Dim value As Color
 
instance.Color = value
 
value = instance.Color
C#  
public Color Color {get; set;}

Return Value

An Color structure, representing an ARGB color. Defaults to Color.Empty.

Example

 

The following sample simply demonstrates how set the color of the first data point of a column chart to red.

Visual Basic Copy Code
Chart1.Series("Series1").Points(0).Color = Color.Red

Remarks

This property gets or sets the color of many chart elements, and can be set to any ARGB value.

If this property is set for both a data point and its series then the data point's color will have precedence. The series color will only be used for data points that do not define their own color.

For a detailed explanation on how data is drawn please see the Appearance of Data topic.

If a custom legend item is using a marker then this property will determine the marker color, unless the MarkerColor property is set (MarkerColor then has precedence).

This property will be ignored if the Image property specifies an image to be used for the legend item symbol.

Note: This property is applicable only to LegendCells, with a CellType of SeriesSymbol, or Image.

Requirements

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

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.