MenuItemType Enumeration
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WPF. SDK
- Assembly
TXSpell.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WPF. SDK TXSpell.from the setup.dll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Determines the type of a menu item (Windows.Forms or WPF). The enumeration contains the following values:
Syntax
public enum TXSpell.MenuItemTypePublic Enum TXSpell.MenuItemTypeMembers
| Value | Value | Description |
|---|---|---|
| AddToDictionary | 1 | Clicking a MenuItem of type 'AddToDictionary' causes the misspelled word to be added to all editable user dictionaries and removed from the corresponding collection (TXTextControl.MisspelledWordCollection / IncorrectWordCollection). |
| Delete | 2 | Clicking a MenuItem of type 'Delete' causes the misspelled word to be removed from the corresponding collection (TXTextControl.MisspelledWordCollection / IncorrectWordCollection). 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, 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, the word is removed from the corresponding collection. |
| NoSuggestions | 16 | Clicking a MenuItem of type NoSuggestionsNoSuggestions raises the Proofing.TXSpellChecker.MenuItemClicked 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 (for TXTextControl.MisspelledWord) / IncorrectWordChangingEventArgs (for IncorrectWord). 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, the word is removed from the corresponding collection |
Examples
The following example selects the Add To Dictionary value from the Menu Item Type enumeration and uses it as a documented workflow choice.
TXTextControl.Proofing.TXSpell.MenuItemType value = TXTextControl.Proofing.TXSpell.MenuItemType.AddToDictionary;
Console.WriteLine($"Using Menu Item Type: {value}");Dim value As TXTextControl.Proofing.TXSpell.MenuItemType = TXTextControl.Proofing.TXSpell.MenuItemType.AddToDictionary
Console.WriteLine($"Using Menu Item Type: {value}")