Class Border | Apps Script | Google for Developers (original) (raw)
Class Border
Stay organized with collections Save and categorize content based on your preferences.
Border
Describes the border around an element.
Methods
Method | Return type | Brief description |
---|---|---|
getDashStyle() | DashStyle | Gets the DashStyle of the border. |
getLineFill() | LineFill | Gets the LineFill of the border. |
getWeight() | Number | Gets the thickness of the border in points. |
isVisible() | Boolean | Gets whether the border is visible or not. |
setDashStyle(style) | Border | Sets the DashStyle of the border. |
setTransparent() | Border | Sets the border to be transparent. |
setWeight(points) | Border | Sets the thickness of the border in points. |
Detailed documentation
getDashStyle()
Gets the [DashStyle](/apps-script/reference/slides/dash-style)
of the border.
Return
[DashStyle](/apps-script/reference/slides/dash-style)
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
getLineFill()
Gets the [LineFill](/apps-script/reference/slides/line-fill)
of the border.
Return
[LineFill](/apps-script/reference/slides/line-fill)
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
getWeight()
Gets the thickness of the border in points. Returns null
if the element does not have a border.
Return
Number
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
isVisible()
Gets whether the border is visible or not.
Return
Boolean
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
setDashStyle(style)
Sets the [DashStyle](/apps-script/reference/slides/dash-style)
of the border.
Setting a [DashStyle](/apps-script/reference/slides/dash-style)
on a transparent border makes it visible.
Parameters
Name | Type | Description |
---|---|---|
style | DashStyle |
Return
[Border](#)
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
setTransparent()
Sets the border to be transparent.
Return
[Border](#)
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
setWeight(points)
Sets the thickness of the border in points.
Setting a weight on a transparent border makes it visible.
Parameters
Name | Type | Description |
---|---|---|
points | Number |
Return
[Border](#)
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.