GrapeCity MultiRow Windows Forms Documentation
Insert Method (ComboBoxCell.ObjectCollection)


The zero-based index at which to place an item within an unsorted ComboBoxCell.
An object representing the item to insert.
Inserts an item into the collection at the specified index.
Syntax
<SuppressMessageAttribute(Category="Microsoft.Naming", 
   CheckId="CA1725:ParameterNamesShouldMatchBaseDeclaration", 
   Scope="", 
   Target="", 
   MessageId="1#", 
   Justification="")>
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal item As Object _
) 
Dim instance As ComboBoxCell.ObjectCollection
Dim index As Integer
Dim item As Object
 
instance.Insert(index, item)
[SuppressMessage(Category="Microsoft.Naming", 
   CheckId="CA1725:ParameterNamesShouldMatchBaseDeclaration", 
   Scope="", 
   Target="", 
   MessageId="1#", 
   Justification="")]
public void Insert( 
   int index,
   object item
)

Parameters

index
The zero-based index at which to place an item within an unsorted ComboBoxCell.
item
An object representing the item to insert.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe item parameter is a null reference (Nothing in Visual Basic).
System.InvalidOperationExceptionThe cell's ListCell.DataSource property value is not a null reference (Nothing in Visual Basic).
System.ArgumentOutOfRangeException The index is less than 0 or greater than the number of items in the collection.
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

Reference

ComboBoxCell.ObjectCollection Class
ComboBoxCell.ObjectCollection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.