CursorEventArgs.ChartArea Property

.NET Framework (current version)
 

Gets the ChartArea object that a cursor or range selection belongs to.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public ChartArea ChartArea { get; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.ChartArea

An object of type ChartArea that represents the chart area that a range selection or cursor belongs to.

The ChartArea property is exposed in the following events of the root Chart object: CursorPositionChanged, CursorPositionChanging, SelectionRangeChanged and SelectionRangeChanging.

This property can be used to:

  • determine which chart area the event is being raised for; this is useful to know when there are multiple chart areas within a chart image.

  • get and set chart area properties, such as BackColor.

.NET Framework
Available since 4.0
Return to top
Show: