با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > Block > removeIcon
متد ()block.removeIcon
نمادی را که getType آن با نوع مشخص شده iconType مطابقت دارد از بلوک حذف می کند.
امضا:
removeIcon(type: IconType<IIcon>): boolean;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
نوع | IconType < IIcon > | نوع نمادی که باید از بلوک حذف شود. |
برمی گرداند:
بولی
اگر نمادی با نوع داده شده پیدا شد درست است، در غیر این صورت نادرست است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[],["The `Block.removeIcon()` method removes a specific icon from a block based on its type. It accepts an `IconType` parameter, specifying the icon to remove. The method returns a boolean value: `true` if an icon of the specified type was found and removed, and `false` otherwise. The only parameter is the icon's type. This method is used to delete the specified icon.\n"]]