TX Text Control .NET for WPF

ChartDeleted 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 chart has been deleted. It occurs, when a chart has been deleted with the ChartCollection.Remove method. The event handler receives an argument of type ChartEventArgs containing data related to this event.

Syntax

public event ChartEventHandler ChartDeleted;

Examples

The following example records useful context when chart deleted occurs.

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