[]
ICellPaddingProvides padding values (left, right, top, bottom) for cells. Can be created with uniform padding on all sides or with individual values for each side. This class is used with SpreadJS JSON I/O and PDF export.
// Uniform padding on all sides
CellPadding padding = new CellPadding(15);
worksheet.getRange("A1").setCellPadding(padding);
// Different padding for each side (top, right, bottom, left)
CellPadding padding2 = new CellPadding(10, 20, 10, 20);
worksheet.getRange("B1").setCellPadding(padding2);
CellPadding(int all) CellPadding(int top,
int right,
int bottom,
int left) all - The padding value for all sides.top - The integer value representing the top padding.right - The integer value representing the right padding.bottom - The integer value representing the bottom padding.left - The integer value representing the left padding.
CellPadding padding = new CellPadding(10, 20, 10, 5);
int left = padding.getLeft();
getLeft in interface ICellPadding
CellPadding padding = new CellPadding(10, 20, 10, 5);
int right = padding.getRight();
getRight in interface ICellPadding
CellPadding padding = new CellPadding(10, 20, 10, 5);
int top = padding.getTop();
getTop in interface ICellPadding
CellPadding padding = new CellPadding(10, 20, 10, 5);
int bottom = padding.getBottom();
getBottom in interface ICellPadding