TX Text Control .NET for Windows Forms

DrawingMoved Event

Event|Introduced in 23.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 drawing has been moved. It does not occur, if an inline or anchored drawing has been moved because text has been inserted. The event handler receives an argument of type DrawingEventArgs containing data related to this event.

Syntax

public event DrawingEventHandler DrawingMoved;

Examples

The following example records useful context when drawing moved occurs.

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