Skip to content

ButtonData

Public Class

Base class used to contain information necessary to construct a button in the Ribbon.

Inheritance Hierarchy

System.Object
Autodesk.Revit.UI.ItemData
Autodesk.Revit.UI.RibbonItemData
Autodesk.Revit.UI.ButtonData
Autodesk.Revit.UI.PulldownButtonData
Autodesk.Revit.UI.PushButtonData

Namespace: Autodesk.Revit.UI

Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class ButtonData : RibbonItemData

The ButtonData type exposes the following members.

Properties

Name

Description


Public Property
Image

The image of the button.


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.
(Inherited from ItemData)


Public Property
LargeImage

The large image of the button.


Public Property
LongDescription

Long description of the command tooltip
(Inherited from RibbonItemData)


Public Property

The internal name of the item.
(Inherited from ItemData)


Public Property

The user-visible text of the button.


Public Property
ToolTip

The tooltip of item.
(Inherited from ItemData)


Public Property
ToolTipImage

The image to show as a part of the button extended tooltip
(Inherited from RibbonItemData)


Methods

Name

Description


Public Method

(Inherited from ItemData)


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

Gets the contextual help bound with this control.
(Inherited from RibbonItemData)


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

Sets the contextual help bound with this button data.
(Inherited from RibbonItemData)


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)