ShapeFormatChanged Event
- Namespace
TXTextControl.WPF. Drawing
- Package
TXTextControl.asTextControl. WPF. SDK TXDrawing.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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;Public Event ShapeFormatChanged As ShapeEventHandlerExamples
The following example records useful context when shape format changed occurs.
tXDrawingControl.ShapeFormatChanged += (sender, e) =>
{
Console.WriteLine($"Shape Format Changed at {DateTime.Now:u}");
};AddHandler tXDrawingControl.ShapeFormatChanged,
Sub(sender, e)
Console.WriteLine($"Shape Format Changed at {DateTime.Now:u}")
End Sub