# TXSpell.MenuItemType Enumeration

> Determines the type of a menu item (Windows.Forms or WPF). The enumeration contains the following values:

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.Proofing > TXSpell.MenuItemType Enumeration
- **1214 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell-menuitemtype/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell-menuitemtype/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell-menuitemtype/enumeration/llms-full.txt

---

### Description

Determines the type of a menu item ([Windows.Forms](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/menuitem/llms-full.txt) or WPF). The enumeration contains the following values:

### Syntax

```csharp
public enum TXSpell.MenuItemType
```

```vbnet
Public Enum TXSpell.MenuItemType
```

### Members

| Value | Value | Description |
|---|---|---|
| AddToDictionary | 1 | Clicking a MenuItem of type 'AddToDictionary' causes the misspelled word to be added to all [editable user dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionarycollection/haseditableuserdictionaries-property/llms-full.txt) and removed from the corresponding collection (`TXTextControl.MisspelledWordCollection` / [IncorrectWordCollection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordcollection/llms-full.txt)). |
| Delete | 2 | Clicking a MenuItem of type 'Delete' causes the misspelled word to be removed from the corresponding collection (`TXTextControl.MisspelledWordCollection` / [IncorrectWordCollection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordcollection/llms-full.txt)). If the misspelled word is an object of type `TXTextControl.MisspelledWord`, it is removed from the `TXTextControl.TextControl` text. |
| IgnoreAll | 4 | Clicking a MenuItem of type 'IgnoreAll' causes all misspelled words, that have the same text like the current misspelled word, to be ignored. If the misspelled word is an object of type `TXTextControl.MisspelledWord` (TX Text Control version X8 and higher), the `IsIgnored` property of all similar misspelled words is set to true. If the TX Text Control version is 17.0 or the misspelled word is an object of type [IncorrectWord](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectword/llms-full.txt), all ignorable words are removed from the corresponding collection. |
| IgnoreOnce | 8 | Clicking a MenuItem of type 'IgnoreOnce' causes the misspelled word to be ignored. If the word is an object of type `TXTextControl.MisspelledWord` (TX Text Control version X8 and higher), its `IsIgnored` property is set to true. If the TX Text Control version is 17.0 or the misspelled word is an object of type [IncorrectWord](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectword/llms-full.txt), the word is removed from the corresponding collection. |
| NoSuggestions | 16 | Clicking a MenuItem of type NoSuggestionsNoSuggestions raises the [Proofing.TXSpellChecker.MenuItemClicked](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/menuitemclicked-event/llms-full.txt) event. No collection will be changed. |
| Suggestion | 32 | Clicking a MenuItem of type 'Suggestion' causes the misspelled word to be replaced with a another word. That suggested word will be represented by the `MenuItem.Text` property or the `CorrectedWord` property of the [MisspelledWordChangingEventArgs](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/correctedword-property/llms-full.txt) (for `TXTextControl.MisspelledWord`) / [IncorrectWordChangingEventArgs](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/correctedword-property/llms-full.txt) (for [IncorrectWord](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectword/llms-full.txt)). If the misspelled word is an object of type `TXTextControl.MisspelledWord`, it is replaced with the suggested word inside `TXTextControl.TextControl`. If the misspelled word is an object of type [IncorrectWord](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectword/llms-full.txt), the word is removed from the corresponding [collection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordcollection/llms-full.txt) |

### Examples

The following example selects the Add To Dictionary value from the Menu Item Type enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.Proofing.TXSpell.MenuItemType value = TXTextControl.Proofing.TXSpell.MenuItemType.AddToDictionary;
Console.WriteLine($"Using Menu Item Type: {value}");
```

```vbnet
Dim value As TXTextControl.Proofing.TXSpell.MenuItemType = TXTextControl.Proofing.TXSpell.MenuItemType.AddToDictionary
Console.WriteLine($"Using Menu Item Type: {value}")
```

---

## Nearby

- **Previous:** [TXSpell.LanguageScopes Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/languagescopes-property/llms-full.txt)
- **Next:** [TXSpell.SpellingCorrectionMode Enumeration](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell-spellingcorrectionmode/enumeration/llms-full.txt)
