DrawingEventArgs Class
- Namespace
TXTextControl.DataVisualization
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
- Inherits
- Event
Args - Drawing
Event Args
- Event
Description
The DrawingEventArgs class provides data for all events that occur with drawings. These are the TextControl.DrawingCreated, TextControl.DrawingDeleted, TextControl.DrawingClicked, TextControl.DrawingDoubleClicked, TextControl.DrawingRightClicked, TextControl.DrawingMoved TextControl.DrawingSelected, TextControl.DrawingDeselected TextControl.DrawingActivated, TextControl.DrawingDeactivated and TextControl.DrawingSized events.
Syntax
public class DrawingEventArgs : EventArgsPublic Class DrawingEventArgs
Inherits EventArgsExamples
The following example uses DrawingEventArgs.DrawingFrame while handling DrawingClicked.
textControl.DrawingClicked += (_, e) =>
{
if (e.DrawingFrame != null)
{
e.DrawingFrame.DescriptiveText = "Quarterly sales by region";
}
};AddHandler textControl.DrawingClicked,
Sub(sender, e)
If e.DrawingFrame IsNot Nothing Then
e.DrawingFrame.DescriptiveText = "Quarterly sales by region"
End If
End SubMembers
Properties
| Property | Description |
|---|---|
| DrawingFrame | Gets an object that represents the drawing which causes the event. It is of the type DataVisualization.DrawingFrame. |