Class Border Stay organized with collections Save and categorize content based on your preferences.
Page Summary
The Border class describes the border around an element.
Methods are available to get and set the dash style, line fill, and weight of the border, as well as check its visibility and set it to transparent.
Describes the border around an element.
Methods
| Method | Return type | Brief description |
|---|---|---|
get | Dash | Gets theDash of the border. |
get | Line | Gets theLine of the border. |
get | Number|null | Gets the thickness of the border in points. |
is | Boolean | Gets whether the border is visible or not. |
set | Border | Sets theDash of the border. |
set | Border | Sets the border to be transparent. |
set | Border | Sets the thickness of the border in points. |
Detailed documentation
getDashStyle()
getLineFill()
getWeight()
Gets the thickness of the border in points. Returnsnull if the element does not have aborder.
Return
Number|null
Authorization
Scripts that use this method require authorization with one or more of the followingscopes:
https://www.googleapis.com/auth/presentations.currentonlyhttps://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 followingscopes:
https://www.googleapis.com/auth/presentations.currentonlyhttps://www.googleapis.com/auth/presentations
setDashStyle(style)
Sets theDash of the border.
Setting aDash on a transparent border makes it visible.
Parameters
| Name | Type | Description |
|---|---|---|
style | Dash |
Return
Authorization
Scripts that use this method require authorization with one or more of the followingscopes:
https://www.googleapis.com/auth/presentations.currentonlyhttps://www.googleapis.com/auth/presentations
setTransparent()
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
Authorization
Scripts that use this method require authorization with one or more of the followingscopes:
https://www.googleapis.com/auth/presentations.currentonlyhttps://www.googleapis.com/auth/presentations
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.