Revit 2025 API
Radio |
Adds new ToggleButtons to the RadioButtonGroup.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IList<ToggleButton> AddItems( IList<ToggleButtonData> buttonData )
Public Function AddItems ( buttonData As IList(Of ToggleButtonData) ) As IList(Of ToggleButton)
public: IList<ToggleButton^>^ AddItems( IList<ToggleButtonData^>^ buttonData )
member AddItems : buttonData : IList<ToggleButtonData> -> IList<ToggleButton>
Parameters
- buttonData IListToggleButtonData
- A list of objects containing the data needed to construct the ToggleButtons.
Return Value
IListToggleButtonThe newly added ToggleButtons.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when buttonData is . |
| ArgumentException | Thrown when button with buttonData.Name already exists in the group. |
See Also