TX Text Control .NET for Windows Forms

FrameMoved Event

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

Syntax

public event FrameEventHandler FrameMoved;

Examples

The following example records useful context when frame moved occurs.

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