C# 클래스 BrightIdeasSoftware.TextMatchFilter

Instances of this class include only those rows of the listview that contain a given string.
상속: AbstractModelFilter
파일 보기 프로젝트 열기: tvoyle/ObjectListViewRepack 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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