TX Text Control .NET for WPF

ImageCreated Event

Event|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Occurs when a new image has been created. It occurs if an image has been inserted in the document with the clipboard or 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}");
};