Solved

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

Posted on 2011-09-06
3
497 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now