Метод CellRange:getCellProperties
Метод возвращает набор свойств форматирования (DocumentAPI.CellProperties) для диапазона ячеек. Возвращаемая структура содержит свойства, общие для всех ячеек диапазона.
Пример
local tbl = document:getBlocks():getTable(0)
local rng = tbl:getCellRange("B3:C4")
local cellProperties = rng:getCellProperties()
local colorRGBA = cellProperties.backgroundColor
if (colorRGBA ~= nil) then
print(colorRGBA.r)
end