Class ExcelValueFilterCollection
- Namespace
- OfficeOpenXml.Filter
- Assembly
- EPPlus.dll
A collection of value filters
public class ExcelValueFilterCollection : ExcelFilterCollectionBase<ExcelFilterItem>, IEnumerable<ExcelFilterItem>, IEnumerable
- Inheritance
-
ExcelValueFilterCollection
- Implements
- Inherited Members
Constructors
ExcelValueFilterCollection()
public ExcelValueFilterCollection()
Properties
Blank
Flag indicating whether to filter by blank
public bool Blank { get; set; }
Property Value
Methods
Add(ExcelFilterDateGroupItem)
Add a Date filter item.
public ExcelFilterDateGroupItem Add(ExcelFilterDateGroupItem value)
Parameters
valueExcelFilterDateGroupItem
Returns
Add(ExcelFilterValueItem)
Add a filter value that will be matched agains the ExcelRange.String property
If value is "" or null sets Blank=True instead of adding.public ExcelFilterValueItem Add(ExcelFilterValueItem item)
Parameters
itemExcelFilterValueItemThe value to add. If "" or null sets Blank=True instead.
Returns
- ExcelFilterValueItem
The filter value item
Add(string)
Add a filter value that will be matched agains the ExcelRange.Text property
If value is "" or null sets Blank=True instead of adding.public ExcelFilterValueItem Add(string value)
Parameters
valuestringThe value to add. If "" or null sets Blank=True instead.
Returns
- ExcelFilterValueItem
The filter value item
Clear()
Clears the collection
public void Clear()
Remove(ExcelFilterItem)
Remove the item from the list
public void Remove(ExcelFilterItem item)
Parameters
itemExcelFilterItemThe item to remove
RemoveAt(int)
Remove the item at the specified index from the list
public void RemoveAt(int index)
Parameters
indexintThe index in the list