ComboBox.AddItem Method

ComboBoxAddItem Method

Adds a new item to the ComboBox.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ComboBoxMember AddItem(
	ComboBoxMemberData memberData
)
Public Function AddItem ( 
	memberData As ComboBoxMemberData
) As ComboBoxMember
public:
ComboBoxMember^ AddItem(
	ComboBoxMemberData^ memberData
)
member AddItem : 
        memberData : ComboBoxMemberData -> ComboBoxMember 

Parameters

memberData  ComboBoxMemberData
An object containing the data needed to construct the ComboBoxMember.

Return Value

ComboBoxMember
The newly added ComboBoxMember.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when memberData is .
ArgumentException Thrown when button with memberData.Name already exists in the drop-down list.
See Also