C# Class BrightIdeasSoftware.TextMatchFilter

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

Protected Properties

Property Type Description
MatchingStrategies List

Public Methods

Method 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

Protected Methods

Method Description
IterateColumns ( ) : IEnumerable

Loop over the columns that are being considering by the filter

Method Details

Contains() public static method

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

Filter() public method

Do the actual work of filtering
public Filter ( object modelObject ) : bool
modelObject object
return bool

FindAllMatchedRanges() public method

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
return IEnumerable

IsIncluded() public method

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

IterateColumns() protected method

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

Prefix() public static method

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
return TextMatchFilter

Regex() public static method

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
return TextMatchFilter

TextMatchFilter() public method

Create a TextFilter
public TextMatchFilter ( ObjectListView olv ) : System
olv ObjectListView
return System

TextMatchFilter() public method

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

TextMatchFilter() public method

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
return System

Property Details

MatchingStrategies protected_oe property

protected List MatchingStrategies
return List