[]
        
(Showing Draft Content)

C1.Win.C1SpellChecker.SuggestionsEventArgs.Suggestions

Suggestions Property

Suggestions

Gets the suggestion list.

Declaration
public SuggestionList Suggestions { get; }
Remarks

The suggestion list can be customized. Elements can be added, removed or rearranged.

Examples

This example checks the misspelled word and inserts one or more suggestions at the top of the list if need.

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");
}