🚧app.setBorder()

⬆️ 需要: BorderStyle

// 🔸 app.setBorder(range, style)
app.setBorder = function(
  range,      // 範圍 (Range)
  style       // 邊線樣式 (BorderStyle)
){
  // set border
  range.setBorder(
    style.edge.top, 
    style.edge.left, 
    style.edge.bottom, 
    style.edge.right, 
    style.internalBorder.vertical, 
    style.internalBorder.horizontal, 
    style.color, 
    style.style
  );
  
  return app;    // for chaining
};

Last updated