Call one of the overloads of DrawString that takes a StringFormat object as an argument. The StringFormat object lets you specify things like horizontal alignment.
|
|
Hello, i want to ask how do you draw a string in a rectangle AND center aligned at the mid point of that rectangle ?
I can wrap the draw string in a rectangle
I can centered the drawstring at a point
but can somebody combine them ?
Call one of the overloads of DrawString that takes a StringFormat object as an argument. The StringFormat object lets you specify things like horizontal alignment.
2007, 2008, 2009, 2010
Why is my data not saved to my database? | Communicating between multiple forms
MSDN: Data Walkthroughs | "How Do I?" Videos
My Blog: Custom Events | Dynamic GDI+ Drawing
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks