DrawShape Event
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Occurs when additional user-interaction parts must be drawn. These parts are the frame shown during an image or textframe is moved or sized and the line shown during the width of a table cell is changed. The event handler receives an argument of type DrawShapeEventArgs containing data related to this event.
Syntax
public event DrawShapeEventHandler DrawShape;Public Event DrawShape As DrawShapeEventHandlerExamples
The following example records useful context when draw shape occurs.
textViewGenerator.DrawShape += (sender, e) =>
{
Console.WriteLine($"Kind: {e.Kind}");
};AddHandler textViewGenerator.DrawShape,
Sub(sender, e)
Console.WriteLine($"Kind: {e.Kind}")
End Sub