GrapeCity MultiRow Windows Forms Documentation
Item Property (ComboBoxCell.ObjectCollection)


The zero-based index of the element to get or set.
Retrieves the item at the specified index location. In C#, this property is the indexer for the ComboBoxCell.ObjectCollection class.
Syntax
Public Overridable Default Property Item( _
   ByVal index As Integer _
) As Object
Dim instance As ComboBoxCell.ObjectCollection
Dim index As Integer
Dim value As Object
 
instance.Item(index) = value
 
value = instance.Item(index)
public virtual object this[ 
   int index
]; {get; set;}

Parameters

index
The zero-based index of the element to get or set.

Property Value

A System.Object value that is stored at the given index's position.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionWhen setting this property, the cell's ListCell.DataSource property value is not a null reference (Nothing in Visual Basic).
System.ArgumentNullExceptionThe assigned value is 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 minus one.
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.