C# Class BrightIdeasSoftware.TextMatchFilter

Instances of this class include only those rows of the listview that contain a given string.
Inheritance: AbstractModelFilter
Afficher le fichier Open project: tvoyle/ObjectListViewRepack Class Usage Examples

Protected Properties

Свойство Type Description
MatchingStrategies List

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
IterateColumns ( ) : IEnumerable

Loop over the columns that are being considering by the filter

Method Details

Contains() public static méthode

Create a text filter that includes rows where any cell contains any of the given strings.
public static Contains ( ObjectListView olv ) : TextMatchFilter
olv ObjectListView
Résultat TextMatchFilter

Filter() public méthode

Do the actual work of filtering
public Filter ( object modelObject ) : bool
modelObject object
Résultat bool

FindAllMatchedRanges() public méthode

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
Résultat IEnumerable

IsIncluded() public méthode

Is the given column one of the columns being used by this filter?
public IsIncluded ( BrightIdeasSoftware.OLVColumn column ) : bool
column BrightIdeasSoftware.OLVColumn
Résultat bool

IterateColumns() protected méthode

Loop over the columns that are being considering by the filter
protected IterateColumns ( ) : IEnumerable
Résultat IEnumerable

Prefix() public static méthode

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
Résultat TextMatchFilter

Regex() public static méthode

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
Résultat TextMatchFilter

TextMatchFilter() public méthode

Create a TextFilter
public TextMatchFilter ( ObjectListView olv ) : System
olv ObjectListView
Résultat System

TextMatchFilter() public méthode

Create a TextFilter that finds the given string
public TextMatchFilter ( ObjectListView olv, string text ) : System
olv ObjectListView
text string
Résultat System

TextMatchFilter() public méthode

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
Résultat System

Property Details

MatchingStrategies protected_oe property

protected List MatchingStrategies
Résultat List