रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > ब्लॉक करें > 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 और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-10 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-10 (UTC) को अपडेट किया गया."],[[["The `Block.removeIcon()` method removes an icon from a block based on its type."],["It accepts the icon type as an argument and returns `true` if the icon was successfully removed, `false` otherwise."]]],["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"]]