Gets or sets the current PushButton of the SplitButton.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public PushButton CurrentButton { get; set; }
Property Value
PushButtonExceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when trying to set the CurrentButton to null. |
| ArgumentException | Thrown when trying to set the CurrentButton to a button which is not in current drop-down list. |
| InvalidOperationException | Thrown when trying to set the CurrentButton if IsSynchronizedWithCurrentItem is false. |
