Class Border

Border

Describes the border around an element.

Methods

MethodReturn typeBrief description
getDashStyle()DashStyleGets the DashStyle of the border.
getLineFill()LineFillGets the LineFill of the border.
getWeight()NumberGets the thickness of the border in points.
isVisible()BooleanGets whether the border is visible or not.
setDashStyle(style)BorderSets the DashStyle of the border.
setTransparent()BorderSets the border to be transparent.
setWeight(points)BorderSets the thickness of the border in points.

Detailed documentation

getDashStyle()

Gets the DashStyle of the border.

Return

DashStyle

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

getLineFill()

Gets the LineFill of the border.

Return

LineFill

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 of the border.

Setting a DashStyle on a transparent border makes it visible.

Parameters

NameTypeDescription
styleDashStyle

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

NameTypeDescription
pointsNumber

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