# TextContextMenuEventArgs.Location Property

> Gets the location, in pixels, where the context menu is displayed. The coordinates are relative to the top-left corner of the screen.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 19.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextContextMenuEventArgs.Location Property
- **309 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontextmenueventargs/location-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontextmenueventargs/location-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontextmenueventargs/location-property/llms-full.txt

---

### 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

```csharp
public Point Location { get; }
```

```vbnet
Public ReadOnly Property Location As Point
```

### Examples

The following example uses `TextContextMenuEventArgs.Location` while handling `TextContextMenuOpening`.

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

```vbnet
AddHandler textControl.TextContextMenuOpening,
    Sub(sender, e)
        Console.WriteLine($"Location: {e.Location}")
    End Sub
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextContextMenuEventArgs.ContextMenuLocation Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontextmenueventargs/contextmenulocation-property/llms-full.txt)
- **Next:** [TextContextMenuEventArgs.TextContextMenu Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontextmenueventargs/textcontextmenu-property/llms-full.txt)
