It's not difficult to see this problem, at the beginning, I think so, but at present, I do not have on the resources on hand to introduce vertical display text, online search data only found a useful, but to achieve more trouble, need to coordinate conversion, rotation, still have to translate, no way, In order to achieve the following figure y direction coordinates of the callout, had to do so, the code is as follows:
Set Rotation center Point
Pb_graphics.translatetransform (PANELRULEY.WIDTH/2, PANELRULEY.HEIGHT/2);
Set Rotation angle
Pb_graphics.rotatetransform (90);
Translation
Pb_graphics.translatetransform (I-19-PANELRULEY.HEIGHT/2 +-(20-panelwork.top),-3);
Draw text
Pb_graphics.drawstring (((int) (I-19)). ToString (), Font, New SolidBrush (Color.Black), 0, 0);
Revert to default scene
Pb_graphics.resettransform ();
It could have been the end of things, however, today in the bookstore stroll, readily see the more direct way to achieve vertical text, so hurriedly bought a book, go home According to its method to achieve vertical text, the latest code as follows (only a code):
Pb_graphics.drawstring (((int) (I-19)). ToString (), Font, New SolidBrush (Color.Black),-2, I-(20-panelwork.top) +2, New StringFormat ( stringformatflags.directionvertical));
Note : The thin frameset is not supported, so I'm trying this code in a thin frameset, so I didn't find the method!