# ServerTextControl.DrawingCreated Event

> Occurs when a new drawing has been created. It occurs, when a drawing has been inserted in the document via the clipboard and when a file containing drawings has been loaded. It does not occur, when a drawing has been added with the DrawingCollection.Add method. The event handler receives an argument of type DrawingEventArgs containing data related to this event.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 23.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > ServerTextControl.DrawingCreated Event
- **380 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/drawingcreated-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/drawingcreated-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/drawingcreated-event/llms-full.txt

---

### Description

Occurs when a new drawing has been created. It occurs, when a drawing has been inserted in the document via the clipboard and when a file containing drawings has been loaded. It does not occur, when a drawing has been added with the [DrawingCollection.Add](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingcollection/add-method/llms-full.txt) method. The event handler receives an argument of type [DrawingEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event DrawingEventHandler DrawingCreated;
```

```vbnet
Public Event DrawingCreated As DrawingEventHandler
```

### Examples

The following example records useful context when drawing created occurs.

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

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

---

## Nearby

- **Previous:** [ServerTextControl.DocumentTargets Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/documenttargets-property/llms-full.txt)
- **Next:** [ServerTextControl.DrawingDeleted Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/drawingdeleted-event/llms-full.txt)
