TX Text Control .NET for WPF

TableCreated Event

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

Description

Occurs after a new table has been created when loading a document which contains a table without an identifier. It does not occur when the table is inserted with the TableInsert method or for tables that have a previously set identifier when loading a document. The event handler receives an argument of type TableEventArgs containing data related to this event.

Syntax

public event TableEventHandler TableCreated;

Examples

The following example records useful context when table created occurs.

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