Метод ConditionalFormatDocumentRules:enumerate
Метод позволяет перечислить элементы коллекции.
Вызов
ConditionalFormatRuleProxysEnumerator enumerate()
Возвращает
- Перечисление правил условного форматирования в документе.
Пример
local rules = document:getConditionalFormatRules()
local aboveOperator
for rule in rules:enumerate() do
if rule:getType() == DocumentAPI.ConditionalFormatOperatorType_AboveAverage then
aboveOperator = DocumentAPI.castToAboveAverageConditionalFormat(rule:getOperator())
end
end