ShapeDeselected Event
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. Core. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDrawing.dll
Description
Occurs when a shape has been deselected. It occurs by removing a shape from the TXDrawingCore.Selection.Shapes property or, if the number of selected shapes is greater than 0, clicking on a location inside the canvas where no shape is located. The event handler receives an argument of type ShapeEventArgs containing data related to this event.
Syntax
public event ShapeEventHandler ShapeDeselected;Public Event ShapeDeselected As ShapeEventHandlerExamples
The following example records useful context when shape deselected occurs.
tXDrawingCore.ShapeDeselected += (sender, e) =>
{
Console.WriteLine($"Shape Deselected at {DateTime.Now:u}");
};AddHandler tXDrawingCore.ShapeDeselected,
Sub(sender, e)
Console.WriteLine($"Shape Deselected at {DateTime.Now:u}")
End Sub