Documentation Center

Command.getChecked

Description

A command is checked (returns true) if the button is pressed. This method return false if the button is in the unpressed/normal state.

For example the bold command is checked when the text at the cursor is bold. On the other hand, the bold command is not checked when the text at the cursor is not bold.

Syntax

Command .getChecked (scope : Scope) : Boolean

Arguments

scope
Scope . The scope state.

Return Value

Boolean. True if this command is checked.