रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > IFlyout > createBlock
IFlyout.createBlock() तरीका
फ़ाइल फ़ोल्डर पर इस ब्लॉक की कॉपी बनाएं.
हस्ताक्षर:
createBlock(originalBlock: BlockSvg): BlockSvg;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
originalBlock |
BlockSvg |
फ़्लाइआउट से कॉपी करने के लिए ब्लॉक. |
लौटाए जाने वाले प्रॉडक्ट:
BlockSvg
नया ब्लॉक.
अपवाद
{गड़बड़ी} अगर डीसीरियलाइज़ेशन के दौरान कोई गड़बड़ी हुई है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["The `IFlyout.createBlock()` method creates a copy of a specified block on the workspace."],["It takes a `BlockSvg` object as input, representing the block to be copied from the flyout."],["The method returns a new `BlockSvg` object, representing the copied block on the workspace."],["Potential deserialization errors can result in an exception being thrown."]]],["The `createBlock` method, part of the `IFlyout` interface, generates a copy of a block on the workspace. It accepts an `originalBlock` of type `BlockSvg` as input, representing the block to be copied from the flyout. The method returns a new `BlockSvg` object, which is the copied block. An error will be thrown if the copy cannot be generated correctly.\n"]]