Skip to content

ToggleButtonData

Public Class

This class contains information necessary to construct a toggle button in a RadioButtonGroup.

Inheritance Hierarchy

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

Namespace: Autodesk.Revit.UI

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

Syntax

public class ToggleButtonData : PushButtonData

The ToggleButtonData type exposes the following members.

Constructors

Name

Description


Public Method
ToggleButtonData(String, String)

Constructs a new instance of ToggleButtonData, where the ToggleButton will not be associated to an ExternalCommand.


Public Method
ToggleButtonData(String, String, String, String)

Constructs a new instance of ToggleButtonData, where the ToggleButton will execute an ExternalCommand when clicked.


Properties

Name

Description


Public Property
AssemblyName

The assembly path of the button.
(Inherited from PushButtonData)


Public Property
AvailabilityClassName

The full class name for the class providing the entry point to decide availability of this push button.
(Inherited from PushButtonData)


Public Property
ClassName

The name of the class containing the implementation for the command.
(Inherited from PushButtonData)


Public Property
Image

The image of the button.
(Inherited from ButtonData)


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.
(Inherited from ButtonData)


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.
(Inherited from ButtonData)


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)