Spread ASP.NET 6.0 Product Documentation
Insert Method
See Also  Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FilterItemCollection Class : Insert Method


index
Index in the collection at which to add the filter
filterItem
Custom filter item to add

Glossary Item Box

Inserts a filter item into the collection at a specified location.

Syntax

Visual Basic (Declaration) 
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal filterItem As IFilterItem _
) 
Visual Basic (Usage)Copy Code
Dim instance As FilterItemCollection
Dim index As Integer
Dim filterItem As IFilterItem
 
instance.Insert(index, filterItem)
C# 
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
System.ArgumentOutOfRangeException Specified index is out of range; must be between 0 and the total number of filters in the collection
System.ArgumentException No display name or length of the display name of the specified custom filter is zero
System.ArgumentException No specified custom filter or specified custom filter is null
System.ArgumentException Specified custom filter display name already exists in the collection; the name must be unique

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.