Page 1 of 1

Linespacing problem

Posted: Fri Oct 05, 2018 1:42 am
by wsy211
Linespacing problem

The first row of data is not spaced at the top of RVE from the first row to the second row.
How to fix it.
Linespacingļ¼š=150%,The larger the number, the more obvious it is

See figure for problem effect.

Re: Linespacing problem

Posted: Fri Oct 05, 2018 7:16 pm
by Sergey Tkachenko
If line spacing is defined in % (ParaStyle.LineSpacingType = rvlsPercent), additional line spacing is added below each line, not above it.
You can define space above the paragraph using ParaStyle.SpaceBefore property. You can increase spacing at the very beginning of the document by increasing RichView.TopMargin.

Alternatively, you can use "at least" or "exactly" line spacing (ParaStyle.LineSpacingType = rvlsLineHeightAtLeast or rvlsLineHeightExact). In these modes, you specify line height, and extra spacing is added above each line.

Re: Linespacing problem

Posted: Sat Oct 06, 2018 3:31 am
by wsy211
Thanks.