AddItems Method


Combo Box Add Items Method

Adds a new items to the ComboBox.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public IList<ComboBoxMember> AddItems(
	IList<ComboBoxMemberData> memberData
)

Parameters

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

Return Value

IList ComboBoxMember
The newly added ComboBoxMembers.
Exceptions
Exception Condition
ArgumentNullException Thrown when memberData is .
ArgumentException Thrown when button with memberData.Name already exists in the drop-down list.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →