Solved

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

Posted on 2011-09-06
3
503 Views
Last Modified: 2012-05-12
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.
0
Comment
Question by:sdai
3 Comments
 
LVL 15

Accepted Solution

by:
Minh Võ Công earned 125 total points
ID: 36486956
0
 
LVL 1

Assisted Solution

by:NajamG
NajamG earned 125 total points
ID: 36487173
0
 

Author Closing Comment

by:sdai
ID: 36487527
Thank you very much for your quick help.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question