# ServerTextControl.TableCreated Event

> 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.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > ServerTextControl.TableCreated Event
- **350 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/tablecreated-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/tablecreated-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/tablecreated-event/llms-full.txt

---

### 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](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tableeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event TableEventHandler TableCreated;
```

```vbnet
Public Event TableCreated As TableEventHandler
```

### Examples

The following example records useful context when table created occurs.

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

```vbnet
AddHandler textControl.TableCreated,
    Sub(sender, e)
        Console.WriteLine($"Table Created at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [ServerTextControl.SubTextParts Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/subtextparts-property/llms-full.txt)
- **Next:** [ServerTextControl.TableDeleted Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/tabledeleted-event/llms-full.txt)
