# MenuItem.Text Property

> Gets the menu item's text. If the property's value is null, the menu item is a separator.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > MenuItem.Text Property
- **305 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/text-property/llms-full.txt

---

### Description

Gets the menu item's text. If the property's value is null, the menu item is a separator.

### Syntax

```csharp
public string Text { get; }
```

```vbnet
Public ReadOnly Property Text As String
```

### Examples

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

```csharp
Console.WriteLine($"Text: {menuItem.Text}");
Console.WriteLine("Menu Item is ready for use.");
```

```vbnet
Console.WriteLine($"Text: {menuItem.Text}")
Console.WriteLine("Menu Item is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [MenuItem.Items Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/items-property/llms-full.txt)
- **Next:** [RulerBarViewGenerator Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/llms-full.txt)
