๐งBorderStyle
// ็ซๆก็ท็่จญๅฎ
function BorderStyle(
{
top = null,
left = null,
bottom = null,
right = null,
vertical = null,
horizontal = null,
color = 'black',
style = SpreadsheetApp.BorderStyle.SOLID
}={}
) {
// edges
this.edge = {
top : top,
left : left,
bottom: bottom,
right : right
};
// internalBorder
this.internalBorder = {
vertical : vertical,
horizontal: horizontal
};
// color
this.color = color;
// style
this.style = style;
}
โฌ๏ธ ้่ฆ๏ผ app (app.style)
// ๐ธ BorderStyle.allThin()
BorderStyle.allThin = function(){
return new BorderStyle({
top:true, bottom:true,
left:true, right:true,
vertical:true, horizontal:true
});
};
// ๐ธ BorderStyle.thickTopBottom()
BorderStyle.thickTopBottom = function(){
return new BorderStyle({
top : true,
bottom: true,
style : app.style.border.solidMedium // app.style
});
};
// ๐ธ BorderStyle.thinBottom()
BorderStyle.thinBottom = function(){
return new BorderStyle({bottom: true});
};
Last updated