public int GetPosition()
        {
            var page = (OptionPageGridSearch)m_Package.GetDialogPage(typeof(OptionPageGridSearch));

            if (page != null)
            {
                if (page.TypeOfSearch == OptionPageGridSearch.SearchType.Levenshtein)
                {
                    return(SearchProvider.LevenshteinDistance(SearchString, SearchProvider.SearchString, m_Package));
                }
                else if (page.TypeOfSearch == OptionPageGridSearch.SearchType.WordBasedLevenshtein)
                {
                    return(SearchProvider.WordBasedLevenshteinDistance(SearchString, SearchProvider.SearchString, m_Package));
                }
            }
            return(0);
        }