रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > फ़ाइल फ़ोल्डर > getRootWorkspace
Workspace.getRootWorkspace() तरीका
अगर फ़ाइल फ़ोल्डर में पैरंट मौजूद है, तो रूट वर्कस्पेस का पता चलता है.
उदाहरण के लिए, फ़्लाईआउट में वर्कस्पेस और मिनी वर्कस्पेस बबल में, पैरंट वर्कस्पेस हैं.
हस्ताक्षर:
getRootWorkspace(): Workspace | null;
लौटाए जाने वाले प्रॉडक्ट:
फ़ाइल फ़ोल्डर | शून्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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"]],["आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया."],[[["The `getRootWorkspace()` method retrieves the top-level workspace in a hierarchy of nested workspaces."],["Workspaces embedded within structures like flyouts or bubbles have parent workspaces, and this method helps access the ultimate parent."],["If the current workspace has no parent, meaning it's already the root, the method returns the current workspace itself."],["The return value is either a `Workspace` object representing the root or `null` if no root is found (though this is unlikely in typical scenarios)."]]],[]]