ComboBox.AddItem
Method
Description:
Adds a new item to the ComboBox.
Adds a new item to the ComboBox.
Parameters
| Parameter | Type | Description |
|---|---|---|
| memberData | ComboBoxMemberData | An object containing the data needed to construct the ComboBoxMember. |
Return Value
| Type | Description |
|---|---|
| ComboBoxMember | The newly added ComboBoxMember. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when memberData is. |
| ArgumentException | Thrown when button with memberData.Name already exists in the drop-down list. |