This example sets the line spacing as 80% of the line height.
TextParagraph paragraph = document.getParagraphs().item(2); paragraph.setLineSpacing(Constant.SYMPHONY_LINESPACING_MODE_PROP); paragraph.setLineSpacingHeight(80);
This example sets the line spacing as a fixed height.
TextParagraph paragraph = document.getParagraphs().item(2); paragraph.setLineSpacing(Constant.SYMPHONY_LINESPACING_MODE_FIX); paragraph.setLineSpacingHeight(100);
This example sets the line spacing as a single line height.
TextParagraph paragraph = document.getParagraphs().item(2); paragraph.setLineSpacing(Constant.SYMPHONY_LINESPACING_MODE_SINGLE);
Related information