Link to home
Start Free TrialLog in
Avatar of sdai
sdai

asked on

In C#, how to measure the length of the string in term of DPI?

Hi,
I have a string of characters and I would like to know it's length in term of DPI or inch etc.
I want to know this length in order to pad the front with empty space for the alignment purpose to fit into a rectangle.
Thanks a lot for your help.
ASKER CERTIFIED SOLUTION
Avatar of Cong Minh Vo
Cong Minh Vo
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sdai
sdai

ASKER

Thank you very much for your quick help.