graphics.DrawString() text align right how to???

  • Thread starter Thread starter juvi
  • Start date Start date
J

juvi

hello,

I want to align my text drawings to right....how can this be managed?

I am using graphics.DrawString(.....)

thx
juvi
 
Figure out the right-most pixel, call it "right". Then draw your string
from "right-stringLength" where stringLength = grphics.MeasureString (font,
text).Width.

Hilton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top