調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >blockRendering >PathObject >updateHighlighted
blockRendering.PathObject.updateHighlighted() メソッド
ブロックにハイライトを表示するかどうかを設定します。ブロックのハイライト表示は、現在実行中のブロックを視覚的にマークするためによく使用されます。
署名:
updateHighlighted(enable: boolean): void;
パラメータ
パラメータ |
型 |
説明 |
有効にする |
ブール値 |
ハイライト表示されている場合は true。 |
戻り値:
void
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-21 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 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"]]