# MenuItem.Items Property

> Gets an array of ServerVisualization.MenuItem objects specifying a submenu. These objects contain all data necessary to display the submenu. If the property's value is null, the item has no submenu.

- **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.Items Property
- **377 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/items-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/items-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/items-property/llms-full.txt

---

### Description

Gets an array of [ServerVisualization.MenuItem](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/llms-full.txt) objects specifying a submenu. These objects contain all data necessary to display the submenu. If the property's value is null, the item has no submenu.

### Syntax

```csharp
public MenuItem[] Items { get; }
```

```vbnet
Public ReadOnly Property Items As MenuItem()
```

### Examples

The following example iterates through the items collection and processes each menu item.

```csharp
foreach (TXTextControl.ServerVisualisation.MenuItem menuItemItem in menuItem.Items)
{
    Console.WriteLine(menuItemItem.ImageName);
}
```

```vbnet
For Each menuItemItem As TXTextControl.ServerVisualisation.MenuItem In menuItem.Items
    Console.WriteLine(menuItemItem.ImageName)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [MenuItem.Image Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/image-property/llms-full.txt)
- **Next:** [MenuItem.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/menuitem/text-property/llms-full.txt)
