Linespacing problem

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

Linespacing problem

Post 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.
Attachments
行间距.jpg
行间距.jpg (18.32 KiB) Viewed 11418 times
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Linespacing problem

Post 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.
wsy211
Posts: 13
Joined: Tue Sep 25, 2018 9:10 am

Re: Linespacing problem

Post by wsy211 »

Thanks.
Post Reply