📜  gsheet 获取单元格背景颜色 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:08.960000             🧑  作者: Mango

代码示例1
/**
 * Returns the Hexadecimal value of a cell's background color.
 *
 * @param {number} row The cell's row number.
 * @param {number} column The cell's column number.
 * @return The Hexadecimal value of the cell's background color.
 * @customfunction
 */
function BGHEX(row, column) {
  var background = SpreadsheetApp.getActive().getDataRange().getCell(row, column).getBackground();
  return background;
}