Spread Windows Forms 7.0 Product Documentation
Insert Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpScrollBarButtonCollection Class : Insert Method


index
The zero-based index at which value should be inserted
value
The System.Object to insert into the System.Collections.IList

Glossary Item Box

Inserts an item to the System.Collections.IList at the specified index.

Syntax

Visual Basic (Declaration) 
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal value As Object _
) 
Visual Basic (Usage)Copy Code
Dim instance As FpScrollBarButtonCollection
Dim index As Integer
Dim value As Object
 
instance.Insert(index, value)
C# 
public void Insert( 
   int index,
   object value
)

Parameters

index
The zero-based index at which value should be inserted
value
The System.Object to insert into the System.Collections.IList

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeExceptionindex is not a valid index in the System.Collections.IList.
System.NotSupportedExceptionThe System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size.
System.NullReferenceExceptionvalue is null reference in the System.Collections.IList.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.