I'm looking for a solution to effectively retrieve and update the height and width in pixels of a Google Cell using Google Apps Script. While there is a built-in getWidth() function available, it only returns the width of the range in cells, which doesn't meet my requirements.
Here's an example:
function getCellWidth()
{
var activeSpreadsheet = SpreadsheetApp.getActive();
return activeSpreadsheet.getRange("C11").getWidth();
}
output: 1.0