Метод TextStyle.setParagraphProperties
Метод задает настройки форматирования абзаца.
Вызов
public void setParagraphProperties(ParagraphProperties properties)
Параметры
properties: настройки форматирования абзаца, тип ParagraphProperties.
Пример
TextStyles styles = document.getTextStyles();
TextStyle normalStyle = styles.get(PredefinedTextStyle.Normal);
ParagraphProperties props = normalStyle.getParagraphProperties();
props.beforeSpacing = 2.1f;
normalStyle.setParagraphProperties(props);