TX Spell .NET for WPF

MenuItemType Enumeration

Enumeration
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.dll
Install
dotnet add package TXTextControl.TXSpell.WPF.SDK .NET 8 and later. For .NET Framework, reference TXSpell.dll from the setup.
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll

Description

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

Syntax

public enum TXSpell.MenuItemType

Members

ValueValueDescription
AddToDictionary1Clicking 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).
Delete2Clicking 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.
IgnoreAll4Clicking 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.
IgnoreOnce8Clicking 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.
NoSuggestions16Clicking a MenuItem of type NoSuggestionsNoSuggestions raises the Proofing.TXSpellChecker.MenuItemClicked event. No collection will be changed.
Suggestion32Clicking 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}");