TX Text Control .NET Server

ChartCreated Event

Event|Introduced in 18.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.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;

Examples

The following example records useful context when chart created occurs.

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