TX Text Control .NET for Windows Forms

ShapeFormatChanged Event

Event|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WinForms.SDK as TXDrawing.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Occurs when shape formatting attributes which cannot be handled with the built-in mouse interface 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.

Syntax

public event ShapeEventHandler ShapeFormatChanged;

Examples

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

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