Share via


DesignerDocument.queryCommandState Method

SharePoint Designer Developer Reference

Returns a Boolean that indicates the state of the specified command. If True, the specified command has already been carried out on the current selection. If False, the specified command has not yet been carried out on the current selection.

Syntax

expression.queryCommandState(cmdID)

expression   Required. A variable that represents a DesignerDocument object.

Parameters

Name Required/Optional Data Type Description
cmdID Required String Specifies the command identifier. For a list of available commands see the execCommand method.

Return Value
Boolean

Remarks

This method returns Null if the state of the current selection could not be determined.

See Also