Partager via


RibbonSplitButton.ButtonEnabled Property

Gets or sets a value that indicates whether the button on the RibbonSplitButton is enabled.

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

Syntax

'Declaration
Property ButtonEnabled As Boolean
bool ButtonEnabled { get; set; }

Property Value

Type: System.Boolean
true if the button of the RibbonSplitButton is enabled; otherwise, false. The default is false.

Remarks

This property is specific to the button part of the RibbonSplitButton. If only the button is disabled, users can still open the drop-down menu and click the controls there. In contrast, the Enabled property indicates whether the entire RibbonSplitButton control is enabled. If the control is disabled completely, the entire control does not react to any user actions.

This property can be changed at run time.

.NET Framework Security

See Also

Reference

RibbonSplitButton Interface

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview