Does anybody knows how to count string lenght of pixels???
The problem is that I need to draw string witch is right aligned to one of my reports table's cell.
use one of the drawstring overloads that allow you to draw withing a rectangle, and apply a format (i suggest right-aligned ). set the rectangle's height to 0 if you wish, it'll allow all text to be shown; and, of course, set the width such that the box finieshes up against the end of the cell.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.