blockly > blockRendering > PathObject > updateHighlighted
Méthode blockRendering.PathObject.updateHighlighted()
Indiquez si le bloc doit être mis en surbrillance ou non. La mise en surbrillance des blocs est souvent utilisée pour marquer visuellement les blocs en cours d'exécution.
Signature :
updateHighlighted(enable: boolean): void;
Paramètres
Paramètre |
Type |
Description |
activer |
booléen |
"True" si la valeur est mise en surbrillance. |
Renvoie :
vide
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/08/21 (UTC).
[null,null,["Dernière mise à jour le 2024/08/21 (UTC)."],[[["The `blockRendering.PathObject.updateHighlighted()` method controls the visual highlighting of a block, often used to indicate execution."],["This method accepts a boolean parameter, `enable`, to turn highlighting on (true) or off (false)."],["Calling `updateHighlighted()` with the appropriate boolean value will visually update the block to reflect its highlighted or non-highlighted state."]]],["The `updateHighlighted` method in `blockRendering.PathObject` controls a block's highlight state. It takes a boolean parameter, `enable`. When `enable` is set to `true`, the block is visually highlighted, commonly indicating execution. When `enable` is `false`, the highlight is removed. The method does not return a value. This highlighting feature is used to show a visual marker for the active or executed blocks.\n"]]