RibbonToggleButton Class (2007 System)

Represents a toggle button control on a Ribbon. This class cannot be inherited.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
<ToolboxBitmapAttribute(GetType(RibbonToggleButton), "RibbonToggleButton.bmp")> _
Public NotInheritable Class RibbonToggleButton _
    Inherits RibbonControl
'Usage
Dim instance As RibbonToggleButton
[ToolboxBitmapAttribute(typeof(RibbonToggleButton), "RibbonToggleButton.bmp")]
public sealed class RibbonToggleButton : RibbonControl
[ToolboxBitmapAttribute(typeof(RibbonToggleButton), L"RibbonToggleButton.bmp")]
public ref class RibbonToggleButton sealed : public RibbonControl
public final class RibbonToggleButton extends RibbonControl

Remarks

A RibbonToggleButton can be used to show whether an item is selected.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.Office.Tools.Ribbon.RibbonComponent
        Microsoft.Office.Tools.Ribbon.RibbonControl
          Microsoft.Office.Tools.Ribbon.RibbonToggleButton

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RibbonToggleButton Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Overview

Ribbon Designer

Ribbon Object Model Overview

How to: Get Started Customizing the Ribbon