void DrawVerticalString(Graphics g, string text, Point pos, int fontSize = 16, Color color = Color.Black) { var font = new Font("@宋体", fontSize); var brush = new SolidBrush(color); var format = new StringFormat {FormatFlags = StringFormatFlags.DirectionVertical}; g.DrawString(text, font, brush, pos.X, pos.Y, format); }
void DrawVerticalString(Graphics g, string text, Point pos, int fontSize = 16, Color color = Color.Black)
{
var font = new Font("@宋体", fontSize);
var brush = new SolidBrush(color);
var format = new StringFormat {FormatFlags = StringFormatFlags.DirectionVertical};
g.DrawString(text, font, brush, pos.X, pos.Y, format);
}