描述元素周围的边框。
方法
| 方法 | 返回类型 | 简介 |
|---|---|---|
get | Dash | 获取边框的 Dash。 |
get | Line | 获取边框的 Line。 |
get | Number|null | 获取边框的粗细(以磅为单位)。 |
is | Boolean | 获取边框是否可见。 |
set | Border | 设置边框的 Dash。 |
set | Border | 将边框设置为透明。 |
set | Border | 设置边框的粗细(以磅为单位)。 |
详细文档
get Dash Style()
get Line Fill()
get Weight()
获取边框的粗细(以磅为单位)。如果元素没有边框,则返回 null。
返回
Number|null
授权
使用此方法的脚本需要获得以下一项或多项范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
is Visible()
获取边框是否可见。
返回
Boolean
授权
使用此方法的脚本需要获得以下一项或多项范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Dash Style(style)
设置边框的 Dash。
在透明边框上设置 Dash 会使其可见。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
style | Dash | 要设置的虚线样式。 |
返回
授权
使用此方法的脚本需要获得以下一项或多项范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Transparent()
set Weight(points)
设置边框的粗细(以磅为单位)。
为透明边框设置粗细后,该边框会变为可见。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
points | Number | 边框粗细(以磅为单位)。 |
返回
授权
使用此方法的脚本需要获得以下一项或多项范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations