Sorry, I forgot the background information:
We want to implement a text comparing tool using "TWPRichText". I implemented a frame with two "TWPRichText" next to each other (let's call them "Text_A" and "Text_B").
The compare lib compares the paragraphs of "Text_A" with "Text_B".
When the compare lib finds an added paragraph in "Text_B" an empty paragraph has to be added to "Text_A". The new paragraph needs to have the same height as "Text_B" but without text in it. This is necessary to make sure that the following paragraphs are at the same height.
My idea is to:
- create an empty paragraph in "Text_A"
- calculate the total height of the paragraph added in "Text_B"
- add an empty line (or maybe a ' ' if an empty line is not possible) to the new paragraph
- set the font size of the added line to the calculated total height
I tried:
"MulDiv(par_original.LineHeight(i), 72, Memo.CurrentYPixelsPerInch)"
but it returns 18 if the font size is 16 and 13 if the font size is 11.