Page Element را که سایت اتصال در آن قرار دارد برمی گرداند.
مستندات دقیق
get Index()
نمایه سایت اتصال را برمی گرداند. ایندکس در بین تمام سایت های اتصال در یک عنصر صفحه منحصر به فرد است.
در بیشتر موارد، با شاخص سایت اتصال از پیش تعریف شده از استاندارد ECMA-376 مطابقت دارد. اطلاعات بیشتر در مورد آن سایتهای اتصال را میتوانید در توضیح ویژگی "cnx" در بخش 20.1.9.9 و ضمیمه H پیدا کنید.
بازگشت
Integer - نمایه سایت اتصال.
مجوز
اسکریپت هایی که از این روش استفاده می کنند نیاز به مجوز با یک یا چند مورد از حوزه های زیر دارند:
تاریخ آخرین بهروزرسانی 2025-08-04 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-08-04 بهوقت ساعت هماهنگ جهانی."],[[["\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,["ConnectionSite\n\nThe connection site on a `PageElement` that can connect to a [connector](/apps-script/reference/slides/line#isConnector()). \n\nMethods\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 `PageElement` that the connection site is on. |\n\nDetailed documentation \n\n`getIndex()` \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\nReturn\n\n\n`Integer` --- The index of the connection site.\n\nAuthorization\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`getPageElement()` \nReturns the `PageElement` that the connection site is on.\n\nReturn\n\n\n[PageElement](/apps-script/reference/slides/page-element) --- The page element of the connection site.\n\nAuthorization\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`"]]