Class ConnectionSite
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
कनेक्शनसाइट
PageElement
पर मौजूद कनेक्शन साइट, जो connector
से कनेक्ट हो सकती है.
ज़्यादा जानकारी वाला दस्तावेज़
getIndex()
कनेक्शन साइट का इंडेक्स दिखाता है. यह इंडेक्स, एक ही पेज एलिमेंट पर मौजूद सभी कनेक्शन साइटों में यूनीक होता है.
ज़्यादातर मामलों में, यह ECMA-376 स्टैंडर्ड के हिसाब से, पहले से तय की गई कनेक्शन साइट इंडेक्स से मेल खाता है. कनेक्शन साइटों के बारे में ज़्यादा जानकारी, सेक्शन 20.1.9.9 और Annex H में "cnx" एट्रिब्यूट के ब्यौरे में दी गई है. "Office Open XML File Formats-Fundamentals and Markup Language Reference" के "Predefined DrawingML Shape and Text
Geometries" सेक्शन में,
ECMA-376 के पांचवें वर्शन का पहला हिस्सा.
वापसी का टिकट
Integer
— कनेक्शन साइट का इंडेक्स.
अनुमति देना
इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट के लिए, इनमें से एक या उससे ज़्यादा स्कोप के साथ अनुमति लेना ज़रूरी है:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getPageElement()
यह फ़ंक्शन, उस PageElement
को दिखाता है जिस पर कनेक्शन साइट मौजूद है.
वापसी का टिकट
PageElement
— यह कनेक्ट की गई साइट का पेज एलिमेंट है.
अनुमति देना
इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट के लिए, इनमें से एक या उससे ज़्यादा स्कोप के साथ अनुमति लेना ज़रूरी है:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-04 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-04 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eA connection site is a point on a PageElement where a connector can be attached.\u003c/p\u003e\n"],["\u003cp\u003eYou can get the index of a connection site, which is unique within its PageElement, using \u003ccode\u003egetIndex()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetPageElement()\u003c/code\u003e allows you to retrieve the PageElement associated with a specific connection site.\u003c/p\u003e\n"],["\u003cp\u003eConnection sites often correspond to the ECMA-376 standard, allowing compatibility with various applications.\u003c/p\u003e\n"]]],["A `ConnectionSite` on a `PageElement` can connect to a connector. It offers two methods: `getIndex()` and `getPageElement()`. `getIndex()` returns the site's unique index as an `Integer`, corresponding to the ECMA-376 standard. `getPageElement()` returns the `PageElement` the connection site belongs to. Both methods require specific authorization scopes like `presentations.currentonly` or `presentations`. The index is unique within the element's connection sites.\n"],null,["# Class ConnectionSite\n\nConnectionSite\n\nThe connection site on a `Page``Element` that can connect to a [connector](/apps-script/reference/slides/line#isConnector()). \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------|-----------------------------------------------------------|-------------------------------------------------------------|\n| [getIndex()](#getIndex()) | `Integer` | Returns the index of the connection site. |\n| [getPageElement()](#getPageElement()) | [PageElement](/apps-script/reference/slides/page-element) | Returns the `Page``Element` that the connection site is on. |\n\nDetailed documentation\n----------------------\n\n### `get``Index()`\n\nReturns the index of the connection site. The index is unique among all the connection sites on\nthe same page element.\n\nIn most cases, it corresponds to the predefined connection site index from the ECMA-376\nstandard. More information on those connection sites can be found in the description of the\n\"cnx\" attribute in section 20.1.9.9 and Annex H. \"Predefined DrawingML Shape and Text\nGeometries\" of \"Office Open XML File Formats-Fundamentals and Markup Language Reference\", part\n1 of [ECMA-376 5th edition](https://ecma-international.org/publications-and-standards/standards/ecma-376/).\n\n#### Return\n\n\n`Integer` --- The index of the connection site.\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Page``Element()`\n\nReturns the `Page``Element` that the connection site is on.\n\n#### Return\n\n\n[PageElement](/apps-script/reference/slides/page-element) --- The page element of the connection site.\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`"]]