|
-
February 9th, 2005, 12:34 AM
#1
How to get Paragraph leading?
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
-
February 9th, 2005, 07:16 AM
#2
Re: How to get Paragraph leading?
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
-
February 9th, 2005, 07:34 PM
#3
Re: How to get Paragraph leading?
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
Last edited by Sachinkalse; February 9th, 2005 at 07:39 PM.
-
February 10th, 2005, 04:12 AM
#4
Re: How to get Paragraph leading?
Oh, silly me , 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...
-
February 10th, 2005, 04:26 AM
#5
Re: How to get Paragraph leading?
never mind !!!
its the major problem in RTF code generation, no help, no proper documentation and I am no scientist
regards
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|