views:

149

answers:

1

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