ToggleButtonData Constructor (String, String)


Constructs a new instance of ToggleButtonData, where the ToggleButton will not be associated to an ExternalCommand.

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

Syntax

C#
public ToggleButtonData(
	string name,
	string text
)
Visual Basic
Public Sub New ( _
	name As String, _
	text As String _
)
Visual C++
public:
ToggleButtonData(
	String^ name, 
	String^ text
)

Parameters

name
Type: System String
The internal name of the new button.
text
Type: System String
The user visible text seen on the new button.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException Thrown when a null reference ( Nothing in Visual Basic) is passed for one or more arguments.
Autodesk.Revit.Exceptions ArgumentException Thrown when an empty string is passed for one or more arguments.

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 →