Spread Windows Forms 11.0 Product Documentation
InsertItem Method (ConditionalStyleItemCollection)


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ConditionalStyleItemCollection Class : InsertItem Method
The zero based index where item should be inserted.
The object to insert. The value can be null for reference types.
Inserts an element into the Collection at the specified index.
Syntax
'Declaration
 
Protected Overrides NotOverridable Sub InsertItem( _
   ByVal index As Integer, _
   ByVal item As ConditionalStyleItem _
) 
'Usage
 
Dim instance As ConditionalStyleItemCollection
Dim index As Integer
Dim item As ConditionalStyleItem
 
instance.InsertItem(index, item)
protected override void InsertItem( 
   int index,
   ConditionalStyleItem item
)

Parameters

index
The zero based index where item should be inserted.
item
The object to insert. The value can be null for reference types.
Exceptions
ExceptionDescription

The index is less than 0.

-or-

The index is greater than Count.

The item is a null reference (Nothing in Visual Basic).
The item was added to another ConditionalStyleItemCollection.
See Also

Reference

ConditionalStyleItemCollection Class
ConditionalStyleItemCollection Members