bool Completion_MatchFunc(EntryCompletion completion, string key, TreeIter iter) { if (searchSearchProvider == null) { var val = completion.Model.GetValue(iter, (int)СompletionColumn.Tilte).ToString(); return(val.IndexOf(key, StringComparison.CurrentCultureIgnoreCase) > -1); } else { var val = completion.Model.GetValue(iter, (int)СompletionColumn.Item); return(searchSearchProvider.Match(val, key)); } }