Share

RibbonToggleButton Class

Description

Toggle button

This widget has two APIs for the toggle state:

  1. bool IsChecked, used for true/false state. The IsCheckedBinding is set to private.
  2. bool CheckState, used for null/true/false state, can be set to null after initialized only when IsThreeState is true. There is also a CheckStateBinding for CheckState.
Default value of IsThreeState is false.

Class Hierarchy

Autodesk.Windows.RibbonItem
    Autodesk.Windows.RibbonCommandItem
        Autodesk.Windows.RibbonButton
            Autodesk.Windows.RibbonToggleButton
                Autodesk.Windows.ToolBars.ToolBarShareButton

Visual Basic

Public Class RibbonToggleButton
Inherits RibbonButton

C#

public class RibbonToggleButton : RibbonButton;

Notes

IsChecked will be true only when CheckState is true. This is useful for those who want to use the check state as a bool value directly.

Please use CheckState as much as possible.

Links

RibbonToggleButton Properties, RibbonToggleButton Events

Was this information helpful?