TextContextMenuOpening 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 a right mouse click is sent as user input and a context menu should be opened. The event handler receives an argument of type TextContextMenuEventArgs containing data related to this event. The event data contains a list of possible menu items which can be shown for the location where the click occurs.
Syntax
public event TextContextMenuEventHandler TextContextMenuOpening;Public Event TextContextMenuOpening As TextContextMenuEventHandlerExamples
The following example records useful context when text context menu opening occurs.
textViewGenerator.TextContextMenuOpening += (sender, e) =>
{
Console.WriteLine($"Context Menu Location: {e.ContextMenuLocation}");
};AddHandler textViewGenerator.TextContextMenuOpening,
Sub(sender, e)
Console.WriteLine($"Context Menu Location: {e.ContextMenuLocation}")
End Sub