C# Class WinRTXamlToolkit.Controls.AutoCompleteTextBox.CommonSubstringSuggestion

Algorithm implementation for AutoCompleteTextBox that scores suggestions from the dictionary based on the longest common substring.
Inheritance: AutoCompletable
ファイルを表示 Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
GetSuggestedWords ( string wordToSuggest, ICollection suggestionDictionary ) : IList

Gets a list of suggested word completions for the specified word, given a dictionary of words.

Private Methods

Method Description
GetScoreByLongestCommonSubstring ( string wordToSuggest, string suggestion ) : ScoredString

Method Details

GetSuggestedWords() public method

Gets a list of suggested word completions for the specified word, given a dictionary of words.
public GetSuggestedWords ( string wordToSuggest, ICollection suggestionDictionary ) : IList
wordToSuggest string Word/string to get suggestions for.
suggestionDictionary ICollection Dictionary of words to select suggestions from.
return IList