ChartMoved Event
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Occurs when a chart has been moved. It does not occur, if an inline or anchored chart has been moved because text has been inserted. The event handler receives an argument of type ChartEventArgs containing data related to this event.
Syntax
public event ChartEventHandler ChartMoved;Public Event ChartMoved As ChartEventHandlerExamples
The following example records useful context when chart moved occurs.
textControl.ChartMoved += (sender, e) =>
{
Console.WriteLine($"Chart Moved at {DateTime.Now:u}");
};AddHandler textControl.ChartMoved,
Sub(sender, e)
Console.WriteLine($"Chart Moved at {DateTime.Now:u}")
End Sub