Spread Windows Forms 6.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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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