TX Text Control .NET for Windows Forms

ChartMoved Event

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

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;

Examples

The following example records useful context when chart moved occurs.

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