Dundas Chart for Windows Forms
Color Property
See Also  Example Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > DataPointAttributes Class : Color Property


Gets or sets the color of the data point.


Data point color

Syntax

Visual Basic (Declaration)  
Public Property Color As Color
Visual Basic (Usage) Copy Code
Dim instance As DataPointAttributes
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.

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).

NOTE: For line chart-type charts this property (EmptyPointStyle.Color) sets the color of lines that connect to an empty point.

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

© 2009 All Rights Reserved.