# TXDrawingCore.ShapeFormatChanged Event

> Occurs when shape formatting attributes have been changed. The corresponding attributes are the shape's ShapeFill, ShapeOutline are Type properties. The event handler receives an argument of type ShapeEventArgs containing data related to this event.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Drawing > TXDrawingCore.ShapeFormatChanged Event
- **415 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapeformatchanged-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapeformatchanged-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapeformatchanged-event/llms-full.txt

---

### Description

Occurs when [shape](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/llms-full.txt) formatting attributes have been changed. The corresponding attributes are the shape's [ShapeFill](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/shapefill-property/llms-full.txt), [ShapeOutline](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/shapeoutline-property/llms-full.txt) are [Type](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/type-property/llms-full.txt) properties. The event handler receives an argument of type [ShapeEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapeeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event ShapeEventHandler ShapeFormatChanged;
```

```vbnet
Public Event ShapeFormatChanged As ShapeEventHandler
```

### Examples

The following example records useful context when shape format changed occurs.

```csharp
tXDrawingCore.ShapeFormatChanged += (sender, e) =>
{
    Console.WriteLine($"Shape Format Changed at {DateTime.Now:u}");
};
```

```vbnet
AddHandler tXDrawingCore.ShapeFormatChanged,
    Sub(sender, e)
        Console.WriteLine($"Shape Format Changed at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TXDrawingCore.ShapeFlipped Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapeflipped-event/llms-full.txt)
- **Next:** [TXDrawingCore.ShapeMoved Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapemoved-event/llms-full.txt)
