TX Text Control .NET for Windows Forms

ShapeMoved Event

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

Description

Occurs when a shape has been moved with the built-in mouse interface. The event handler receives an argument of type ShapeEventArgs containing data related to this event.

Syntax

public event ShapeEventHandler ShapeMoved;

Examples

The following example records useful context when shape moved occurs.

tXDrawingControl.ShapeMoved += (sender, e) =>
{
    Console.WriteLine($"Shape Moved at {DateTime.Now:u}");
};