How can we improve WinForms?

New C1WinPDF MeasureString method overload

We are often printing text, one line or segment at a time, into an area but don't know how much will fit. Using the available MeasureString methods, we must use a loop to repeatedly measure the string until we find the number of characters that will fit into our available space.

Having a MeasureString overload that takes either a width or a rectangle and gives back a number of characters that will fit in the supplied width or rectangle would make our printing methods much more efficient.

This would make the MeasureString method compatible, or at least similar, to the standard Graphics.MeasureString(string, font, LayoutArea, format, CharsFitted, LinesFilled) method.

Thanks.

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Leonard HamptonLeonard Hampton shared this idea  ·   ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base