Adds a new item to the ComboBox.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public ComboBoxMember AddItem( ComboBoxMemberData memberData )
Parameters
- memberData ComboBoxMemberData
- An object containing the data needed to construct the ComboBoxMember.
Return Value
ComboBoxMemberThe newly added ComboBoxMember.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when memberData is null. |
| ArgumentException | Thrown when button with memberData.Name already exists in the drop-down list. |
