Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FilterItemCollection Class / Insert Method
Index in the collection at which to add the filter
Custom filter item to add


In This Topic
    Insert Method (FilterItemCollection)
    In This Topic
    Inserts a filter item into the collection at a specified location.
    Syntax
    'Declaration
     
    
    Public Sub Insert( _
       ByVal index As Integer, _
       ByVal filterItem As IFilterItem _
    ) 
    'Usage
     
    
    Dim instance As FilterItemCollection
    Dim index As Integer
    Dim filterItem As IFilterItem
     
    instance.Insert(index, filterItem)
    public void Insert( 
       int index,
       IFilterItem filterItem
    )

    Parameters

    index
    Index in the collection at which to add the filter
    filterItem
    Custom filter item to add
    Exceptions
    ExceptionDescription
    Specified index is out of range; must be between 0 and the total number of filters in the collection
    No display name or length of the display name of the specified custom filter is zero
    No specified custom filter or specified custom filter is null
    Specified custom filter display name already exists in the collection; the name must be unique
    See Also