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
 
Back
Top