ContextMenuLocation Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets the location in the document for which the context menu will be opened. The context menu items, which will be shown, depend on this location. The property value can be a combination (bitwise or) of the ContextMenuLocation values.
Syntax
public ContextMenuLocation ContextMenuLocation { get; }Public ReadOnly Property ContextMenuLocation As ContextMenuLocationExamples
The following example uses TextContextMenuEventArgs.ContextMenuLocation while handling TextContextMenuOpening.
textControl.TextContextMenuOpening += (_, e) =>
{
Console.WriteLine($"Context Menu Location: {e.ContextMenuLocation}");
};AddHandler textControl.TextContextMenuOpening,
Sub(sender, e)
Console.WriteLine($"Context Menu Location: {e.ContextMenuLocation}")
End SubLimitations
Read only.