Constructs a new instance of SplitButtonData.
Namespace: Autodesk.Revit.UIAssembly: RevitAPIUI (in RevitAPIUI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2011
Syntax
C# |
---|
public SplitButtonData( string name, string text ) |
Visual Basic |
---|
Public Sub New ( _ name As String, _ text As String _ ) |
Visual C++ |
---|
public: SplitButtonData( String^ name, String^ text ) |
Parameters
- name
- Type: System..::..String
The internal name of the new button.
- text
- Type: System..::..String
Remarks
This text will be displayed on the button if drop-down is empty. If sub-items are added,
then the split button will display the current PushButton's text.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | Thrown when nullNothingnullptra 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. |