blockly > blockRendering > PathObject > updateHighlighted
طريقة blockRendering.PathObject.updatehighlighted()
حدِّد ما إذا كان الحظر سيُظهر تمييزًا أم لا. غالبًا ما يتم استخدام تمييز الكتل لوضع علامة مرئية على الكتل التي يتم تنفيذها حاليًا.
Signature:
updateHighlighted(enable: boolean): void;
المعلمات
المعلمة |
النوع |
الوصف |
تفعيل |
منطقي |
True إذا تم تمييزها. |
المرتجعات:
فراغ
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]