ChartCreated Event
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
Description
Occurs when a new chart has been created. It occurs, when a file containing charts has been loaded. It does not occur, when a chart has been added with the ChartCollection.Add method. The event handler receives an argument of type ChartEventArgs containing data related to this event.
Syntax
public event ChartEventHandler ChartCreated;Public Event ChartCreated As ChartEventHandlerExamples
The following example records useful context when chart created occurs.
textControl.ChartCreated += (sender, e) =>
{
Console.WriteLine($"Chart Created at {DateTime.Now:u}");
};AddHandler textControl.ChartCreated,
Sub(sender, e)
Console.WriteLine($"Chart Created at {DateTime.Now:u}")
End Sub