BrightIdeasSoftware.TextMatchFilter.FindAllMatchedRanges C# (CSharp) Метод

FindAllMatchedRanges() публичный Метод

Find all the ways in which this filter matches the given string.
This is used by the renderer to decide which bits of the string should be highlighted
public FindAllMatchedRanges ( string cellText ) : IEnumerable
cellText string
Результат IEnumerable
        public IEnumerable<CharacterRange> FindAllMatchedRanges(string cellText) {
            List<CharacterRange> ranges = new List<CharacterRange>();

            foreach (TextMatchingStrategy filter in this.MatchingStrategies) {
                 if (!String.IsNullOrEmpty(filter.Text))
                    ranges.AddRange(filter.FindAllMatchedRanges(cellText));
            }

            return ranges;
        }