Linespacing problem

General TRichView support forum. Please post your questions here
Post Reply
wsy211
Posts: 10
Joined: Tue Sep 25, 2018 9:10 am

Linespacing problem

Post by wsy211 » Fri Oct 05, 2018 1:42 am

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.
Attachments
行间距.jpg
行间距.jpg (18.32 KiB) Viewed 146 times

Sergey Tkachenko
Site Admin
Posts: 14119
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Linespacing problem

Post by Sergey Tkachenko » Fri Oct 05, 2018 7:16 pm

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.

wsy211
Posts: 10
Joined: Tue Sep 25, 2018 9:10 am

Re: Linespacing problem

Post by wsy211 » Sat Oct 06, 2018 3:31 am

Thanks.

Post Reply