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


The zero-based index at which to place the item within an unsorted ListLabelCell.
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 ListLabelCell.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 the item within an unsorted ListLabelCell.
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

ListLabelCell.ObjectCollection Class
ListLabelCell.ObjectCollection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.