TX Text Control .NET for Windows Forms

ChartClicked Event

Event|Introduced in 18.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Occurs when a chart has been clicked on. The event handler receives an argument of type ChartEventArgs containing data related to this event.

Syntax

public event ChartEventHandler ChartClicked;

Examples

The following example records useful context when chart clicked occurs.

textControl.ChartClicked += (sender, e) =>
{
    Console.WriteLine($"Chart Clicked at {DateTime.Now:u}");
};