Gets or set a value indicating whether the primary button is checked.

Syntax

public bool Checked { get; set; }
Public Property Checked() As Boolean

Examples

The following code showes how to use the RibbonSplitButton´s 'checked' property. Like mentioned above, if the 'SmallIcon' property is set to 'null', the DisplayMode is set to 'IconTextRelation.SmallIconLabeled', and this 'checked' property is set to 'true, a check mark icon is displayed.

TXTextControl.Windows.Forms.Ribbon.RibbonSplitButton ribbonSplitButton = new TXTextControl.Windows.Forms.Ribbon.RibbonSplitButton();
ribbonSplitButton.SmallIcon = null;
ribbonSplitButton.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.SmallIconLabeled;
ribbonSplitButton.Checked = true;
Dim ribbonSplitButton As TXTextControl.Windows.Forms.Ribbon.RibbonSplitButton = New TXTextControl.Windows.Forms.Ribbon.RibbonSplitButton()
ribbonSplitButton.SmallIcon = Nothing
ribbonSplitButton.DisplayMode = TXTextControl.Windows.Forms.Ribbon.IconTextRelation.SmallIconLabeled
ribbonSplitButton.Checked = True

Remarks

A check mark icon is displayed if the SmallIcon property is set to null, the DisplayMode property value is IconTextRelation.SmallIconLabeled and the Checked property value is set to true.