ComboBox.AddItems Method

ComboBoxAddItems Method

Adds a new items to the ComboBox.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IList<ComboBoxMember> AddItems(
	IList<ComboBoxMemberData> memberData
)
Public Function AddItems ( 
	memberData As IList(Of ComboBoxMemberData)
) As IList(Of ComboBoxMember)
public:
IList<ComboBoxMember^>^ AddItems(
	IList<ComboBoxMemberData^>^ memberData
)
member AddItems : 
        memberData : IList<ComboBoxMemberData> -> IList<ComboBoxMember> 

Parameters

memberData  IListComboBoxMemberData
An object list containing the data needed to construct the ComboBoxMember.

Return Value

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