TX Text Control .NET for Windows Forms

DrawingRightClicked Event

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

Description

Occurs when a drawing has been clicked on with the right mouse button. The event handler receives an argument of type DrawingEventArgs containing data related to this event.

Syntax

public event DrawingEventHandler DrawingRightClicked;

Examples

The following example records useful context when drawing right clicked occurs.

textControl.DrawingRightClicked += (sender, e) =>
{
    Console.WriteLine($"Drawing Right Clicked at {DateTime.Now:u}");
};