[]
Inserts a filter item into the collection at a specified location.
public void Insert(int index, IFilterItem filterItem)
Public Sub Insert(index As Integer, filterItem As IFilterItem)
Type | Name | Description |
---|---|---|
int | index | Index in the collection at which to add the filter |
IFilterItem | filterItem | Custom filter item to add |
Type | Condition |
---|---|
ArgumentOutOfRangeException | Specified index is out of range; must be between 0 and the total number of filters in the collection |
ArgumentException | No display name or length of the display name of the specified custom filter is zero |
ArgumentException | No specified custom filter or specified custom filter is null |
ArgumentException | Specified custom filter display name already exists in the collection; the name must be unique |