110,535
社区成员
发帖
与我相关
我的任务
分享
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);
}