RibbonSplitButton.ButtonEnabled Property (2007 System)
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.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Property ButtonEnabled As Boolean
'Usage
Dim instance As RibbonSplitButton
Dim value As Boolean
value = instance.ButtonEnabled
instance.ButtonEnabled = value
public bool ButtonEnabled { get; set; }
public:
property bool ButtonEnabled {
bool get ();
void set (bool value);
}
public function get ButtonEnabled () : boolean
public function set ButtonEnabled (value : boolean)
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
- 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.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace