locked
MS Excel Auto Fit Logic RRS feed

  • Question

  • Hi,

    I am trying to write the own logic to get the auto fitted row/column size as in MS Excel. I used the below three .Net framework methods to evaluate auto fitted row/column size. Unfortunately I am not able to get the exact auto fitted  row/column size as MS Excel. Can you please let me know the logic behind used in the MS Excel to auto fit the row/column.

    Methods List:

    Graphics.MeasureString 

    Graphics.MeasureCharacterRanges

    TextRenderer.MeasureText

     

    Thanks,

    Sathish


    SathishBabuR
    Friday, December 9, 2011 8:24 AM

Answers