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


An System.Object value that represents the item to add to the collection.
Adds an item to the list of items for a ListLabelCell.
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 ListLabelCell.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
An System.Object value that represents the item to add to the collection.

Return Value

An System.Int32 value that represents the position into which the new element was inserted.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe item parameter 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

ListLabelCell.ObjectCollection Class
ListLabelCell.ObjectCollection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.