Class 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 會使其公開可見。
參數
回攻員
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)
以點為單位設定邊框粗細。
在透明邊框上設定權重,即可顯示邊框。
參數
回攻員
Border
授權
使用這個方法的指令碼需要一或多個下列範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-12-11 (世界標準時間)。
[null,null,["上次更新時間:2025-12-11 (世界標準時間)。"],[],["The document outlines how to interact with an element's border. Key actions include getting the border's `DashStyle`, `LineFill`, weight (thickness), and visibility status. You can set the border's `DashStyle`, make it transparent, or adjust its weight in points. Setting a dash style or weight on a transparent border makes it visible. Each method requires specific authorization scopes. The get weight method returns null if the element does not have a border.\n"]]