[]
        
(Showing Draft Content)

C1.Win.Ribbon.RibbonToggleButton

RibbonToggleButton Class

Button that works like a check box. When used within a toggle group, acts as a radio button (checking one unchecks all others).

Implements
IUiaButton
IUiaInvokeProvider
IUiaSelectionItemProvider
IUiaScrollItemProvider
IUiaToggleButton
IUiaToggleProvider
Namespace: C1.Win.Ribbon
Assembly: C1.Win.Ribbon.4.8.dll
Syntax
public class RibbonToggleButton : RibbonButton, IComponent, IDisposable, IUiaButton, IUiaInvokeProvider, IUiaSelectionItemProvider, IUiaScrollItemProvider, IUiaToggleButton, IUiaToggleProvider

Constructors

Name Description
RibbonToggleButton()

Creates a new instance of RibbonToggleButton.

RibbonToggleButton(Image)

Creates a new instance of RibbonToggleButton.

Properties

Name Description
CanDepress

Gets or sets whether the second click depresses the button.

Pressed

Gets or sets a value that indicates whether the button is pressed.

PressedButton

Gets or sets the currently pressed button in this toggle group.

PressedIconSet

Gets the icon set for the Pressed state.

ToggleGroupName

Gets or sets the name of the group of toggle buttons which are mutually exclusive.

Methods

Name Description
OnPressedButtonChanged(EventArgs)

Raises the PressedButtonChanged event.

OnPressedChanged(EventArgs)

Raises the PressedChanged event.

ResetCanDepress()
ResetToggleGroupName()

Restores the default value of the ToggleGroupName property.

ShouldSerializeCanDepress()
ShouldSerializeToggleGroupName()

Specifies whether to save the value of the ToggleGroupName property.

Events

Name Description
PressedButtonChanged

Occurs when the Pressed property is changed for some button that belongs to the same toggle group.

PressedChanged

Occurs whenever the Pressed property is changed.