Click to See Complete Forum and Search --> : How to get Paragraph leading?


Sachinkalse
February 8th, 2005, 11:34 PM
Is there any way to get the value of a Paragraph Leading? i.e. the distance between two consecutive (base) lines of an RTF page?

please guide

Anders
February 9th, 2005, 06:16 AM
You can use the FontFamily class. Look in MSDN (.NET Framework Developer's Guide: Obtaining Font Metrics).

You must know the font that is used by the RTF text box in order to use it. If you don't know the font, I can't help you.

HTH

Sachinkalse
February 9th, 2005, 06:34 PM
thanks for the reply.
I think my question was not giving the entire information.
I want to find the way to get Paragraph leading when any image is inserted in the page. In my case if I insert images in consecutive lines irrespective of image height the distance between two images remains same. Where as it differs in case of text, if font size is changed.
I want to fetch the paragraph leading in case of image, to calculate exact base line to base line height for page layout purpose. In case of normal text, Font.Height solves my purpose.

regards

Anders
February 10th, 2005, 03:12 AM
Oh, silly me :o, didn't think of images. Also, I am not sure I know what you mean by paragraph leading. Is it the same as height of a line? I would have thought that the height of a line would be the height of the highest object on the line :-|

Sorry for not being any help...

Sachinkalse
February 10th, 2005, 03:26 AM
never mind !!!
its the major problem in RTF code generation, no help, no proper documentation and I am no scientist :ehh:

regards