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

Syntax

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

Examples

This example shows how to set a 'RibbonSplitButton's 'ButtonEnabled' property. In order to use this button, it has to be 'enabled'.

TXTextControl.Windows.Forms.Ribbon.RibbonSplitButton ribbonSplitButton = new TXTextControl.Windows.Forms.Ribbon.RibbonSplitButton();
ribbonSplitButton.Text = "My RibbonSplitButton";
ribbonSplitButton.ButtonEnabled = true;
ribbonSplitButton.Checkable = true;
//now this button is enabled and checkable
Dim ribbonSplitButton As TXTextControl.Windows.Forms.Ribbon.RibbonSplitButton = New TXTextControl.Windows.Forms.Ribbon.RibbonSplitButton()
ribbonSplitButton.Text = "My RibbonSplitButton"
ribbonSplitButton.ButtonEnabled = True
ribbonSplitButton.Checkable = True
'now this button is enabled and checkable