Метод TextStyle:setTextProperties
Метод задает настройки форматирования текста.
Вызов
setTextProperties(textProperties)
Параметры
textProperties: настройки форматирования текста, тип TextProperties.
Пример
local styles = document:getTextStyles()
local normalStyle = styles:get(DocumentAPI.PredefinedTextStyle_Normal)
local props = normalStyle:getTextProperties()
props.fontSize = 20
normalStyle:setTextProperties(props)