Class Border
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
详细文档
getDashStyle()
获取边框的 DashStyle。
返回
DashStyle
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
- 
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
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
- 
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
 
 
 
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-07-26。
  
  
  
    
      [null,null,["最后更新时间 (UTC):2025-07-26。"],[],["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"]]