ToggleButtonData(String, String, String, String)
Public Constructor
ArgumentNullException
ArgumentException
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)
Parameters
nameString
The internal name of the new button.
textString
The user visible text seen on the new button.
assemblyNameString
The assembly path of the button.
classNameString
The name of the class containing the implementation for the command.
Exceptions
Exception
Condition
ArgumentNullException
Thrown when . is passed for one or more arguments.
ArgumentException
Thrown when an empty string is passed for one or more arguments.