Class Border
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
बॉर्डर
किसी एलिमेंट के चारों ओर मौजूद बॉर्डर के बारे में बताता है.
ज़्यादा जानकारी वाला दस्तावेज़
getDashStyle()
बॉर्डर का DashStyle
दिखाता है.
वापसी का टिकट
DashStyle
अनुमति देना
इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या एक से ज़्यादा स्कोप के लिए अनुमति की ज़रूरत होती है:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getLineFill()
बॉर्डर का LineFill
दिखाता है.
वापसी का टिकट
LineFill
अनुमति देना
इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या एक से ज़्यादा स्कोप के लिए अनुमति की ज़रूरत होती है:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getWeight()
इससे बॉर्डर की मोटाई पॉइंट में मिलती है. अगर एलिमेंट में कोई border नहीं है, तो null
दिखाता है.
वापसी का टिकट
Number
अनुमति देना
इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या एक से ज़्यादा स्कोप के लिए अनुमति की ज़रूरत होती है:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
isVisible()
इससे पता चलता है कि बॉर्डर दिख रहा है या नहीं.
वापसी का टिकट
Boolean
अनुमति देना
इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या एक से ज़्यादा स्कोप के लिए अनुमति की ज़रूरत होती है:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setDashStyle(style)
बॉर्डर का DashStyle
सेट करता है.
पारदर्शी बॉर्डर पर DashStyle
सेट करने पर, वह दिखने लगता है.
पैरामीटर
वापसी का टिकट
Border
अनुमति देना
इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या एक से ज़्यादा स्कोप के लिए अनुमति की ज़रूरत होती है:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setTransparent()
बॉर्डर को पारदर्शी के तौर पर सेट करता है.
वापसी का टिकट
Border
अनुमति देना
इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या एक से ज़्यादा स्कोप के लिए अनुमति की ज़रूरत होती है:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setWeight(points)
बॉर्डर की मोटाई को पॉइंट में सेट करता है.
पारदर्शी बॉर्डर पर वेट सेट करने से, वह दिखने लगता है.
पैरामीटर
नाम | टाइप | ब्यौरा |
points | Number | |
वापसी का टिकट
Border
अनुमति देना
इस तरीके का इस्तेमाल करने वाली स्क्रिप्ट को, इनमें से एक या एक से ज़्यादा स्कोप के लिए अनुमति की ज़रूरत होती है:
-
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-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eBorder\u003c/code\u003e describes the border around an element and provides methods to manipulate its appearance.\u003c/p\u003e\n"],["\u003cp\u003eYou can get and set the border's dash style, line fill, thickness, and visibility using dedicated methods.\u003c/p\u003e\n"],["\u003cp\u003eSetting a dash style or weight on a transparent border makes it visible.\u003c/p\u003e\n"],["\u003cp\u003eAll methods require authorization with specific scopes for accessing and modifying presentations.\u003c/p\u003e\n"]]],["The document outlines how to interact with an element's border. Key actions include getting the border's `DashStyle`, `LineFill`, weight (thickness), and visibility status. You can set the border's `DashStyle`, make it transparent, or adjust its weight in points. Setting a dash style or weight on a transparent border makes it visible. Each method requires specific authorization scopes. The get weight method returns null if the element does not have a border.\n"],null,["# Class Border\n\nBorder\n\nDescribes the border around an element. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------------------------|-------------------------------------------------------|-------------------------------------------------------------------------------|\n| [getDashStyle()](#getDashStyle()) | [DashStyle](/apps-script/reference/slides/dash-style) | Gets the [DashStyle](/apps-script/reference/slides/dash-style) of the border. |\n| [getLineFill()](#getLineFill()) | [LineFill](/apps-script/reference/slides/line-fill) | Gets the [LineFill](/apps-script/reference/slides/line-fill) of the border. |\n| [getWeight()](#getWeight()) | `Number` | Gets the thickness of the border in points. |\n| [isVisible()](#isVisible()) | `Boolean` | Gets whether the border is visible or not. |\n| [setDashStyle(style)](#setDashStyle(DashStyle)) | [Border](#) | Sets the [DashStyle](/apps-script/reference/slides/dash-style) of the border. |\n| [setTransparent()](#setTransparent()) | [Border](#) | Sets the border to be transparent. |\n| [setWeight(points)](#setWeight(Number)) | [Border](#) | Sets the thickness of the border in points. |\n\nDetailed documentation\n----------------------\n\n### `get``Dash``Style()`\n\nGets the [DashStyle](/apps-script/reference/slides/dash-style) of the border.\n\n#### Return\n\n\n[DashStyle](/apps-script/reference/slides/dash-style)\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``Line``Fill()`\n\nGets the [LineFill](/apps-script/reference/slides/line-fill) of the border.\n\n#### Return\n\n\n[LineFill](/apps-script/reference/slides/line-fill)\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``Weight()`\n\nGets the thickness of the border in points. Returns `null` if the element does not have a\nborder.\n\n#### Return\n\n\n`Number`\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### `is``Visible()`\n\nGets whether the border is visible or not.\n\n#### Return\n\n\n`Boolean`\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### `set``Dash``Style(style)`\n\nSets the [DashStyle](/apps-script/reference/slides/dash-style) of the border.\n\nSetting a [DashStyle](/apps-script/reference/slides/dash-style) on a transparent border makes it visible.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------|-------------------------------------------------------|-------------|\n| `style` | [DashStyle](/apps-script/reference/slides/dash-style) | |\n\n#### Return\n\n\n[Border](#)\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### `set``Transparent()`\n\nSets the border to be transparent.\n\n#### Return\n\n\n[Border](#)\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### `set``Weight(points)`\n\nSets the thickness of the border in points.\n\nSetting a weight on a transparent border makes it visible.\n\n#### Parameters\n\n| Name | Type | Description |\n|----------|----------|-------------|\n| `points` | `Number` | |\n\n#### Return\n\n\n[Border](#)\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`"]]