Share via


RibbonToggleButton Constructor (2007 System)

Initializes a new instance of the RibbonToggleButton class.

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

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New RibbonToggleButton()
public RibbonToggleButton()
public:
RibbonToggleButton()
public function RibbonToggleButton()

Remarks

Visual Studio Tools for Office creates an instance of this class for you when you drag a ToggleButton from the Office Ribbon Controls tab of the Toolbox onto the Ribbon Designer.

You can add a RibbonToggleButton to a RibbonGroup, RibbonBox, RibbonButtonGroup, RibbonMenu, RibbonSplitButton, or the Microsoft Office Menu at design time, or at run time before the Ribbon is loaded into the Microsoft Office application.

For more information, see Ribbon Object Model Overview.

.NET Framework Security

See Also

Reference

RibbonToggleButton Class

RibbonToggleButton Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview