Share

ComboBox.AddItems Method

Adds a new items to the ComboBox.


Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.3.0.0 (25.3.0.0)

Syntax

C#

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

ExceptionCondition
ArgumentNullExceptionThrown when memberData is null.
ArgumentException Thrown when button with memberData.Name already exists in the drop-down list.

See Also

Reference

Was this information helpful?