TX Text Control .NET for WPF

ChartCreated Event

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

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;

Examples

The following example records useful context when chart created occurs.

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