In This Topic
Adds a filter to the specified column.
Syntax
'Declaration
Public Sub AddFilter( _
ByVal column As Integer, _
ByVal As Filter, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean _
)
'Usage
Dim instance As AutoFilter
Dim column As Integer
Dim filter As Filter
Dim applyIfFirst As Boolean
Dim removeActiveFilter As Boolean
Dim replaceActiveFilter As Boolean
instance.AddFilter(column, filter, applyIfFirst, removeActiveFilter, replaceActiveFilter)
public void AddFilter(
int column,
Filter ,
bool ,
bool ,
bool
)
Parameters
- column
- An integer value indicates the column index.
- filter
- A Filter object to add to the specified column.
- applyIfFirst
- if set to
true
, the filter will be re-applied if there is no filter in the specifed column. - removeActiveFilter
- if set to
true
, the current active filter of the column will be removed. - replaceActiveFilter
- if set to
true
, the current active filter of the column will be replaced.
See Also