संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > RenderedConnection > setOffsetInBlock
RenderedConnection.setOffsetInBlock() तरीका
इस कनेक्शन का ऑफ़सेट इसके ब्लॉक के ऊपरी बाएं कोने के हिसाब से सेट करें.
हस्ताक्षर:
setOffsetInBlock(x: number, y: number): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
x |
संख्या |
फ़ाइल फ़ोल्डर की इकाइयों में नया मिलता-जुलता x. |
y |
संख्या |
फ़ाइल फ़ोल्डर की इकाइयों में, नया रिलेटिव y. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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 `setOffsetInBlock` method, part of the `RenderedConnection` class, adjusts a connection's position within its block. It takes two parameters: `x` and `y`, both numbers representing the new horizontal and vertical offsets, respectively, in workspace units. This method's purpose is to reposition the connection, relative to the top-left corner of its containing block, with the function returning void.\n"]]