Skip to main content

Метод TextStyle:setParagraphProperties

Метод задает настройки форматирования абзаца.

Вызов​


setParagraphProperties(properties)

Параметры​

  • properties: настройки форматирования абзаца, тип ParagraphProperties.

Пример​


local styles = document:getTextStyles()
local normalStyle = styles:get(DocumentAPI.PredefinedTextStyle_Normal)
local props = normalStyle:getParagraphProperties()
props.beforeSpacing = 2.1
normalStyle:setParagraphProperties(props)