# MenuItem Class

> The MenuItem class provides the possibility to build a menu strip with the most common TX Spell .NET features. An array of these items is created by calling the TXSpellChecker.GetMenuItems method. Clicking a MenuItem results in a specific action that depends on the Proofing.MenuItem.Type Property. The class is inherited from the System.Windows.Forms.ToolStripMenuItem class.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 3.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.Windows.Forms.dll` from the setup
- **Inherits:** `System.Windows.Forms.ToolStripMenuItem`
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > MenuItem Class
- **485 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/menuitem/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/menuitem/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/menuitem/llms-full.txt

---

### Description

The MenuItem class provides the possibility to build a menu strip with the most common TX Spell .NET features. An array of these items is created by calling the [TXSpellChecker.GetMenuItems](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/getmenuitems-method/llms-full.txt) method. [Clicking a MenuItem](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/menuitemclicked-event/llms-full.txt) results in a specific action that depends on the [Proofing.MenuItem.Type](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/menuitem/type-property/llms-full.txt) Property. The class is inherited from the `System.Windows.Forms.ToolStripMenuItem` class.

### Syntax

```csharp
public sealed class MenuItem : ToolStripMenuItem
```

```vbnet
Public NotInheritable Class MenuItem
    Inherits ToolStripMenuItem
```

### Examples

The following example includes the type value from a Menu Item object in application diagnostics. The created object is then available to the surrounding document workflow.

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

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

---

## In This Section

- [MenuItem.Type Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/menuitem/type-property/llms-full.txt): Gets the type of the MenuItem.

---

## Nearby

- **Previous:** [LanguageScopeCollection.Item Method](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/languagescopecollection/item-method/llms-full.txt)
- **Next:** [MenuItem.Type Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/menuitem/type-property/llms-full.txt)
