CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Posts
    92

    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

  2. #2
    Join Date
    Jul 1999
    Location
    Malmö, Sweden
    Posts
    126

    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

  3. #3
    Join Date
    Mar 2004
    Posts
    92

    Question 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.

  4. #4
    Join Date
    Jul 1999
    Location
    Malmö, Sweden
    Posts
    126

    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...

  5. #5
    Join Date
    Mar 2004
    Posts
    92

    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
  •  





Click Here to Expand Forum to Full Width

Featured