C# Класс BrightIdeasSoftware.TextMatchFilter

Instances of this class include only those rows of the listview that contain a given string.
Наследование: AbstractModelFilter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
MatchingStrategies List

Открытые методы

Метод Описание
Contains ( ObjectListView olv ) : TextMatchFilter

Create a text filter that includes rows where any cell contains any of the given strings.

Filter ( object modelObject ) : bool

Do the actual work of filtering

FindAllMatchedRanges ( string cellText ) : IEnumerable

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

IsIncluded ( BrightIdeasSoftware.OLVColumn column ) : bool

Is the given column one of the columns being used by this filter?

Prefix ( ObjectListView olv ) : TextMatchFilter

Create a text filter that includes rows where any cell begins with one of the given strings

Regex ( ObjectListView olv ) : TextMatchFilter

Create a text filter that will include rows where any cell matches any of the given regex expressions.

Any string that is not a valid regex expression will be ignored.

TextMatchFilter ( ObjectListView olv ) : System

Create a TextFilter

TextMatchFilter ( ObjectListView olv, string text ) : System

Create a TextFilter that finds the given string

TextMatchFilter ( ObjectListView olv, string text, StringComparison comparison ) : System

Create a TextFilter that finds the given string using the given comparison

Защищенные методы

Метод Описание
IterateColumns ( ) : IEnumerable

Loop over the columns that are being considering by the filter

Описание методов

Contains() публичный статический Метод

Create a text filter that includes rows where any cell contains any of the given strings.
public static Contains ( ObjectListView olv ) : TextMatchFilter
olv ObjectListView
Результат TextMatchFilter

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

Do the actual work of filtering
public Filter ( object modelObject ) : bool
modelObject object
Результат bool

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

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

Is the given column one of the columns being used by this filter?
public IsIncluded ( BrightIdeasSoftware.OLVColumn column ) : bool
column BrightIdeasSoftware.OLVColumn
Результат bool

IterateColumns() защищенный Метод

Loop over the columns that are being considering by the filter
protected IterateColumns ( ) : IEnumerable
Результат IEnumerable

Prefix() публичный статический Метод

Create a text filter that includes rows where any cell begins with one of the given strings
public static Prefix ( ObjectListView olv ) : TextMatchFilter
olv ObjectListView
Результат TextMatchFilter

Regex() публичный статический Метод

Create a text filter that will include rows where any cell matches any of the given regex expressions.
Any string that is not a valid regex expression will be ignored.
public static Regex ( ObjectListView olv ) : TextMatchFilter
olv ObjectListView
Результат TextMatchFilter

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

Create a TextFilter
public TextMatchFilter ( ObjectListView olv ) : System
olv ObjectListView
Результат System

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

Create a TextFilter that finds the given string
public TextMatchFilter ( ObjectListView olv, string text ) : System
olv ObjectListView
text string
Результат System

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

Create a TextFilter that finds the given string using the given comparison
public TextMatchFilter ( ObjectListView olv, string text, StringComparison comparison ) : System
olv ObjectListView
text string
comparison StringComparison
Результат System

Описание свойств

MatchingStrategies защищенное свойство

protected List MatchingStrategies
Результат List