| C1.Win.C1SpellChecker.4 Assembly > C1.Win.C1SpellChecker Namespace > C1SpellChecker Class : ShowSuggestions Event |
'Declaration Public Event ShowSuggestions As SuggestionsEventHandler
public event SuggestionsEventHandler ShowSuggestions
The event handler receives an argument of type SuggestionsEventArgs containing data related to this event. The following SuggestionsEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Suggestions | Gets the suggestion list. |
| Word | Gets the misspelled word. |
Use this method to customize the suggestion list. Suggestions can be added, removed or rearranged.
If the suggestion list contains more items than SpellOptions.MaxSuggestionsInContextMenu, then the additional items won't be shown in the spell context menu.
This event does not occur when user calls GetSuggestions(String,Int32) method.
private void c1SpellChecker1_ShowSuggestions(object sender, C1.Win.C1SpellChecker.SuggestionsEventArgs e) { if (e.Word.StartsWith("o")) e.Suggestions.Insert(0, "one new suggestion"); if (e.Word.Contains("i")) e.Suggestions.Insert(0, "is suggestion"); if (e.Word.StartsWith("tex")) e.Suggestions.Insert(0, "text suggestion"); }