TX Text Control .NET Server

ImageCreated Event

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

Description

Occurs when a new image has been created. It occurs if a file containing images has been loaded. It does not occur if an image has been added with the ImageCollection.Add method. The event handler receives an argument of type ImageEventArgs containing data related to this event.

Syntax

public event ImageEventHandler ImageCreated;

Examples

The following example records useful context when image created occurs.

textControl.ImageCreated += (sender, e) =>
{
    Console.WriteLine($"Image Created at {DateTime.Now:u}");
};