TX Text Control .NET Server

ViewChanged Event

Event|Introduced in 33.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.Core.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDrawing.dll

Description

Occurs 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;

Examples

The following example records useful context when view changed occurs.

tXDrawingCore.ViewChanged += (sender, e) =>
{
    Console.WriteLine($"View Changed at {DateTime.Now:u}");
};