Class Border

框線

描述元素周圍的邊框。

方法

方法傳回類型簡短說明
getDashStyle()DashStyle|null取得邊框的 DashStyle
getLineFill()LineFill取得邊框的 LineFill
getWeight()Number|null以點為單位取得邊框粗細。
isVisible()Boolean取得邊框是否顯示。
setDashStyle(style)Border設定邊框的 DashStyle
setTransparent()Border將邊框設為透明。
setWeight(points)Border以點為單位設定邊框粗細。

內容詳盡的說明文件

getDashStyle()

取得邊框的 DashStyle

回攻員

DashStyle|null

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

  • 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()

以點為單位取得邊框粗細。如果元素沒有邊框,則傳回 null

回攻員

Number|null

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

  • 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 會使其公開可見。

參數

名稱類型說明
styleDashStyle

回攻員

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)

以點為單位設定邊框粗細。

在透明邊框上設定權重,即可顯示邊框。

參數

名稱類型說明
pointsNumber

回攻員

Border

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations