Base Combo Box CellObject CollectionAdd Method
Add an item to the collection
Definition
Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
The index of the added item
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public int Add(
Object item
)VB
Public Function Add (
item As Object
) As IntegerC++
public:
int Add(
Object^ item
)F#
member Add :
item : Object -> int Parameters
- item Object
- The item to add
Return Value
Int32The index of the added item
Exceptions
| ArgumentNullException | This is thrown if the item is null |
| ArgumentException | This is thrown if an attempt is made to add an item to the collection when a data source is in use. |