Muokkaa

Jaa


CursorEventArgs.ChartArea Property

Definition

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

public:
 property System::Windows::Forms::DataVisualization::Charting::ChartArea ^ ChartArea { System::Windows::Forms::DataVisualization::Charting::ChartArea ^ get(); };
public System.Windows.Forms.DataVisualization.Charting.ChartArea ChartArea { get; }
member this.ChartArea : System.Windows.Forms.DataVisualization.Charting.ChartArea
Public ReadOnly Property ChartArea As ChartArea

Property Value

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

Remarks

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.

Applies to