Location 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 pixels, where the context menu is displayed. The coordinates are relative to the top-left corner of the screen.
Syntax
public Point Location { get; }Public ReadOnly Property Location As PointExamples
The following example uses TextContextMenuEventArgs.Location while handling TextContextMenuOpening.
textControl.TextContextMenuOpening += (_, e) =>
{
Console.WriteLine($"Location: {e.Location}");
};AddHandler textControl.TextContextMenuOpening,
Sub(sender, e)
Console.WriteLine($"Location: {e.Location}")
End SubLimitations
Read only.