ViewChanged Event
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WinForms. SDK TXDrawing.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Occurs when UI manipulations such as shape moving or selection changing have caused the view to change. The event handler receives an argument of type ViewChangedEventArgs containing data related to this event.
Syntax
public event ViewChangedEventHandler ViewChanged;Public Event ViewChanged As ViewChangedEventHandlerExamples
The following example records useful context when view changed occurs.
tXDrawingControl.ViewChanged += (sender, e) =>
{
Console.WriteLine($"View Changed at {DateTime.Now:u}");
};AddHandler tXDrawingControl.ViewChanged,
Sub(sender, e)
Console.WriteLine($"View Changed at {DateTime.Now:u}")
End Sub