संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > IPositionable > getBoundingRectangle
IPositionable.getBoundingRectangle() तरीका
ब्लॉकली इंजेक्शन div के संबंध में पिक्सेल इकाइयों में यूज़र इंटरफ़ेस (यूआई) एलिमेंट का बाउंडिंग रेक्टैंगल देता है.
हस्ताक्षर:
getBoundingRectangle(): Rect | null;
लौटाए जाने वाले प्रॉडक्ट:
रेक्टैंगल | शून्य
यूज़र इंटरफ़ेस (यूआई) एलिमेंट का बाउंडिंग बॉक्स. अगर बाउंडिंग बॉक्स को यूज़र इंटरफ़ेस (यूआई) के दूसरे एलिमेंट से अनदेखा किया जाना चाहिए, तो वैल्यू नहीं दिखेगी.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (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"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `getBoundingRectangle()` method, part of the `IPositionable` interface, calculates and returns the bounding rectangle of a UI element. This rectangle is defined in pixel units relative to the Blockly injection div. The method's return value is either a `Rect` object representing the bounding box or `null` if the bounding box should be ignored. This information allows other UI elements to determine their position.\n"]]