ToggleButtonData(String, String, String, String) Constructor

ToggleButtonData(String, String, String, String) Constructor

Constructs a new instance of ToggleButtonData, where the ToggleButton will execute an ExternalCommand when clicked.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ToggleButtonData(
	string name,
	string text,
	string assemblyName,
	string className
)
Public Sub New ( 
	name As String,
	text As String,
	assemblyName As String,
	className As String
)
public:
ToggleButtonData(
	String^ name, 
	String^ text, 
	String^ assemblyName, 
	String^ className
)
new : 
        name : string * 
        text : string * 
        assemblyName : string * 
        className : string -> ToggleButtonData

Parameters

name  String
The internal name of the new button.
text  String
The user visible text seen on the new button.
assemblyName  String
The assembly path of the button.
className  String
The name of the class containing the implementation for the command.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when is passed for one or more arguments.
ArgumentExceptionThrown when an empty string is passed for one or more arguments.
See Also