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


A System.Object value that represents the item to add to the collection.
Adds an item to the list of items for a ComboBoxCell.
Syntax
<SuppressMessageAttribute(Category="Microsoft.Naming", 
   CheckId="CA1725:ParameterNamesShouldMatchBaseDeclaration", 
   Scope="", 
   Target="", 
   MessageId="0#", 
   Justification="")>
Public Function Add( _
   ByVal item As Object _
) As Integer
Dim instance As ComboBoxCell.ObjectCollection
Dim item As Object
Dim value As Integer
 
value = instance.Add(item)
[SuppressMessage(Category="Microsoft.Naming", 
   CheckId="CA1725:ParameterNamesShouldMatchBaseDeclaration", 
   Scope="", 
   Target="", 
   MessageId="0#", 
   Justification="")]
public int Add( 
   object item
)

Parameters

item
A System.Object value that represents the item to add to the collection.

Return Value

A System.Int32 value that represents the position into which the new element was inserted.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe item is a null reference (Nothing in Visual Basic).
System.ArgumentExceptionThe cell's ListCell.DataSource property value is not a null reference (Nothing in Visual Basic).
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.