blockly > Block > hasIcon
متد ()block.hasIcon
امضا:
hasIcon(type: IconType<IIcon>): boolean;
پارامترها
برمی گرداند:
بولی
اگر نمادی با نوع داده شده در بلوک وجود داشته باشد صحیح است، در غیر این صورت نادرست است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["The `Block.hasIcon()` method checks for the presence of a specific icon type on a block."],["It accepts an `IconType` as input and returns `true` if the icon is found, otherwise `false`."]]],["The `Block.hasIcon()` method checks for the existence of a specific icon type on a block. It takes one parameter, `type`, of `IconType\u003cIIcon\u003e`. The method returns a boolean value: `true` if an icon of the specified type is present on the block, and `false` if it is not. It determines whether the block contains an icon with the given icon `type`.\n"]]