Gets or sets a semi-transparent color that highlights a range of data.
Chart area range selection color.
Syntax
Visual Basic (Declaration) |
|
Public Property SelectionColor As Color |
Visual Basic (Usage) |
Copy Code |
Dim instance As Cursor
Dim value As Color
instance.SelectionColor = value
value = instance.SelectionColor
|
C# |
|
public Color SelectionColor {get; set;} |
Return Value
A
Color value representing the color of the highlighted range. Defaults to LightGray, with an alpha value of 120.
Example
C# |
Copy Code |
using Dundas.Charting.WinControl; ... chart1.ChartAreas("Default").CursorX.SelectionColor = Color.Red; chart1.ChartAreas("Default").CursorY.SelectionColor = Color.Blue; |
Visual Basic |
Copy Code |
Imports Dundas.Charting.WinControl ... chart1.ChartAreas("Default").CursorX.SelectionColor = Color.Red chart1.ChartAreas("Default").CursorY.SelectionColor = Color.Blue |
Remarks
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