Skip to main content

Метод ConditionalFormatTableRules:enumerate

Метод позволяет перечислить элементы коллекции.

Вызов​


ConditionalFormatRuleProxysEnumerator enumerate()

Возвращает​

  • Перечисление правил условного форматирования на листе.

Пример​


local sheet = document:getBlocks():getTable(0)
local rules = sheet:getConditionalFormatRules()
local aboveOperator
for rule in rules:enumerate() do
if rule:getType() == DocumentAPI.ConditionalFormatOperatorType_AboveAverage then
aboveOperator = DocumentAPI.castToAboveAverageConditionalFormat(rule:getOperator())
end
end