RibbonButton
This class is the base class of PushButton and PulldownButton.
Inheritance Hierarchy
System.Object
Autodesk.Revit.UI.RibbonItem
Autodesk.Revit.UI.RibbonButton
Autodesk.Revit.UI.PulldownButton
Autodesk.Revit.UI.PushButton
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class RibbonButton : RibbonItem
The RibbonButton type exposes the following members.
Properties
Name
Description
Public Property
Enabled
Gets or sets a value indicating whether the item is enabled.
(Inherited from RibbonItem)
Public Property
Image
The image of the button.
Public Property
IsEnabledByContext
Indicates if this button can be executed. True if the pushbutton is permitted to be executed based on the current Revit context (active document, active view and active tool). False if the pushbutton is disabled because of the active context.
Public Property
ItemText
Gets or sets the text displayed on the item.
(Inherited from RibbonItem)
Public Property
ItemType
Gets the item type.
(Inherited from RibbonItem)
Public Property
LargeImage
The large image shown on the button.
Public Property
LongDescription
Long description of the command tooltip
(Inherited from RibbonItem)
Public Property
Name
The name of the item.
(Inherited from RibbonItem)
Public Property
ToolTip
The description that appears as a ToolTip for the item.
(Inherited from RibbonItem)
Public Property
ToolTipImage
The image to show as a part of the button extended tooltip
(Inherited from RibbonItem)
Public Property
Visible
Gets or sets a value indicating whether the item is visible.
(Inherited from RibbonItem)
Methods
Name
Description
Public Method
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from RibbonItem)
Public Method
GetContextualHelp
Gets the contextual help bound with this control.
(Inherited from RibbonItem)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
SetContextualHelp
Sets the contextual help bound with this button.
(Inherited from RibbonItem)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)