# TextContextMenuEventArgs.ContextMenuLocation Property

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

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

---

### 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](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/contextmenulocation/enumeration/llms-full.txt) values.

### Syntax

```csharp
public ContextMenuLocation ContextMenuLocation { get; }
```

```vbnet
Public ReadOnly Property ContextMenuLocation As ContextMenuLocation
```

### Examples

The following example includes the context menu location value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Context Menu Location: {textContextMenuEventArgs.ContextMenuLocation}");
Console.WriteLine("Text Context Menu Event Args is ready for use.");
```

```vbnet
Console.WriteLine($"Context Menu Location: {textContextMenuEventArgs.ContextMenuLocation}")
Console.WriteLine("Text Context Menu Event Args is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextContextMenuEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontextmenueventargs/llms-full.txt)
- **Next:** [TextContextMenuEventArgs.HorizontalOffset Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontextmenueventargs/horizontaloffset-property/llms-full.txt)
