TX Text Control .NET for Windows Forms

Location Property

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

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; }

Examples

The following example uses TextContextMenuEventArgs.Location while handling TextContextMenuOpening.

textControl.TextContextMenuOpening += (_, e) =>
{
    Console.WriteLine($"Location: {e.Location}");
};

Limitations

Read only.