ComponentOne SpellChecker for WinForms
C1.Win.C1SpellChecker.4.8 Assembly / C1.Win.C1SpellChecker Namespace / SuggestionsEventArgs Class / Suggestions Property
Example

In This Topic
    Suggestions Property (SuggestionsEventArgs)
    In This Topic
    Gets the suggestion list.
    Syntax
    'Declaration
     
    Public ReadOnly Property Suggestions As SuggestionList
    public SuggestionList Suggestions {get;}
    Remarks
    The suggestion list can be customized. Elements can be added, removed or rearranged.
    Example
    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");
    }
    See Also