Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / AutoFilter Class / AddFilter Method
An integer value indicates the column index.
A Filter object to add to the specified column.
if set to true, the filter will be re-applied if there is no filter in the specifed column.
if set to true, the current active filter of the column will be removed.
if set to true, the current active filter of the column will be replaced.


In This Topic
AddFilter Method
In This Topic
Adds a filter to the specified column.
Syntax
'Declaration
 
Public Sub AddFilter( _
   ByVal column As Integer, _
   ByVal filter As Filter, _
   Optional ByVal applyIfFirst As Boolean, _
   Optional ByVal removeActiveFilter As Boolean, _
   Optional ByVal replaceActiveFilter 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)

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