RibbonFactory.CreateRibbonToggleButton Method
Creates a RibbonToggleButton that represents a toggle button control on a Ribbon.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
Function CreateRibbonToggleButton As RibbonToggleButton
RibbonToggleButton CreateRibbonToggleButton()
Return Value
Type: Microsoft.Office.Tools.Ribbon.RibbonToggleButton
A Ribbon toggle button.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.