I am adding a label controls at run time. I can add or modify text in label and can change the font also.Now my problem is When i changed the font of text in label, alignment is not proper,its due to padding.Is there any way to find how much padding is ocured [ed: obscured?] based on font?
A:
Did you look at the Padding
property?
You may have to turn off AutoSize
to get better results.
leppie
2010-03-11 09:27:16
yeah, i tried with setting paading to 0px and Autosize to false, but no luck. Padding is caused based on font i use for the label text. SO is there any way to get how much padding spaces occured for purticular font type?
Ganesh
2010-03-11 09:33:18