CursorEventArgs.ChartArea Property

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

Supported in: 4

.NET Framework Client Profile

Supported in: 4

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft