Share

RadioButtonGroup.AddItem Method

Adds a new ToggleButton to the RadioButtonGroup.


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

Syntax

C#

public ToggleButton AddItem(
	ToggleButtonData buttonData
)

Parameters

buttonData  ToggleButtonData
An object containing the data needed to construct the ToggleButton.

Return Value

ToggleButton
The newly added ToggleButton.

Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when buttonData is null.
ArgumentException Thrown when button with buttonData.Name already exists in the group.

See Also

Reference

Was this information helpful?