# Javascript: TXTextControl.ContextMenuLocation Enumeration

> Determines the location in the document where a context menu will be shown.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 31.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.ContextMenuLocation Enumeration
- **579 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/contextmenulocation-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/contextmenulocation-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/contextmenulocation-enumeration/llms-full.txt

---

### Description

Determines the location in the document where a context menu will be shown.

### Members

| Member | Description |
|---|---|
| TextSelection | The menu context is a text selection. |
| TextInputPosition | The menu context is the text input position. |
| Header | The menu context is the top page margin which contains a header. |
| NoHeader | The menu context is the top page margin which contains no header. |
| Footer | The menu context is the bottom page margin which contains a footer. |
| NoFooter | The menu context is the bottom page margin which contains no footer. |
| PageMargin | The menu context is the top or the bottom page margin. |
| PageNumberField | The menu context is a page number field. |
| SelectedFrame | The menu context is a selected frame (text frame, image, chart or barcode). |
| Table | The menu context is a text selection or a text input position in a table. |
| TextField | The menu context is a text selection or a text input position in a text field. |
| MisspelledWord | The menu context is a text selection or a text input position in a misspelled word. |
| TableOfContents | The menu context is a text selection or a text input position in a table of contents. |
| TrackedChange | The menu context is a text selection or a text input position in a tracked change. |
| Comment | The menu context is a text selection or a text input position in a comment. |

### Examples

The following example uses `TXTextControl.ContextMenuLocation.TextSelection` (the menu context is a text selection.) in a document-editing workflow.

```javascript
const value = TXTextControl.ContextMenuLocation.TextSelection;
console.log("The menu context is a text selection.", value);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.connectionID Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/connectionid-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.contextMenusEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/contextmenusenabled-property/llms-full.txt)
