# MenuItem Class

> The Drawing.MenuItem class represents a bindable Windows Forms ToolStripMenuItem. The MenuItem class is inherited from the System.Windows.Forms.ToolStripMenuItem class and implements the System.Windows.Forms.IBindableComponent interface. The following describes only the properties, methods and events defined through the MenuItem class. For a list of properties, methods and events inherited from the System.Windows.Forms.ToolStripMenuItem calss and System.Windows.Forms.IBindableComponent interface see the .NET Framework reference.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDrawing.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.Windows.Forms.dll` from the setup
- **Inherits:** `System.Windows.Forms.ToolStripMenuItem`
- **Implements:** `System.ComponentModel.IComponent`, `System.IDisposable`, `System.Windows.Forms.IBindableComponent`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Drawing > MenuItem Class
- **566 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/menuitem/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/menuitem/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/menuitem/llms-full.txt

---

### Description

The Drawing.MenuItem class represents a bindable Windows Forms ToolStripMenuItem. The `MenuItem` class is inherited from the `System.Windows.Forms.ToolStripMenuItem` class and implements the `System.Windows.Forms.IBindableComponent` interface. The following describes only the properties, methods and events defined through the `MenuItem` class. For a list of properties, methods and events inherited from the `System.Windows.Forms.ToolStripMenuItem` calss and `System.Windows.Forms.IBindableComponent` interface see the .NET Framework reference.

### Syntax

```csharp
public class MenuItem : ToolStripMenuItem, IComponent, IDisposable, IBindableComponent
```

```vbnet
Public Class MenuItem
    Inherits ToolStripMenuItem
    Implements IComponent, IDisposable, IBindableComponent
```

### Examples

The following example creates a Menu Item instance and configures its enabled setting for a document workflow.

```csharp
using TXTextControl.Drawing.MenuItem menuItem = new();
menuItem.Enabled = true;
```

```vbnet
Dim menuItem As New TXTextControl.Drawing.MenuItem()
menuItem.Enabled = True
```

---

## Nearby

- **Previous:** [Flip Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/flip/enumeration/llms-full.txt)
- **Next:** [Selection Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/llms-full.txt)
