AddItems Method


Adds new ToggleButtons to the RadioButtonGroup.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2011

Syntax

C#
public IList<ToggleButton> AddItems(
	IList<ToggleButtonData> buttonData
)
Visual Basic
Public Function AddItems ( _
	buttonData As IList(Of ToggleButtonData) _
) As IList(Of ToggleButton)
Visual C++
public:
IList<ToggleButton^>^ AddItems(
	IList<ToggleButtonData^>^ buttonData
)

Parameters

buttonData
Type: System.Collections.GenericIListToggleButtonData
A list of objects containing the data needed to construct the ToggleButtons.

Return Value

The newly added ToggleButtons.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullExceptionThrown when buttonData is a null reference (Nothing in Visual Basic).
Autodesk.Revit.ExceptionsArgumentException Thrown when button with buttonData.Name already exists in the group.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →