IRibbonCommand.EnabledStatement property
Gets the ECMAScript (JavaScript) code that is executed to determine whether the command should be enabled.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
ReadOnly Property EnabledStatement As String
Get
'Usage
Dim instance As IRibbonCommand
Dim value As String
value = instance.EnabledStatement
string EnabledStatement { get; }
Property value
Type: System.String
Returns String.
Remarks
The statement must return [true] if the command should be enabled; otherwise, the command is disabled.