如何设置“竖着放”的字体? 如:“名称” 要写成格式:名 称 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参看http://www.syncfusion.com/faq/windowsforms/Search/644.aspxorhttp://blog.csdn.net/knight94/archive/2006/03/25/638397.aspx 1.放在表格(table)中,限制表格宽度2.加入标记<br>:名<br>称 private void pictureBox1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics g = e.Graphics; g.TranslateTransform(100.0f, 100.0f); g.RotateTransform(-90.0f); g.DrawString("Vertical Text", Font, Brushes.Blue, 0.0f, 0.0f); g.ResetTransform(); g.TranslateTransform(100.0f, 100.0f); g.RotateTransform(-45.0f); g.DrawString("Slanted Text", new Font(Font, FontStyle.Bold), Brushes.Red, 0.0f, 0.0f); g.ResetTransform(); } 我已想出来了,就之间用一个label控件,设置其size。 StringFormat vertStrFormat = new StringFormat();vertStrFormat.FormatFlags = StringFormatFlags.DirectionVertical;g.DrawString("abcd",horzFont,horzBrush,(int)((172+k*80)*bW),(int)(242*bH),vertStrFormat); luojinat2005 的方法很好,改变世界坐标 但是我不晓得table怎么设置。从哪里可以调用? Graphics g=e.Graphics; string txt="汽包水位"; FontFamily ff=new FontFamily("Times New Roman"); FontStyle style=FontStyle.Regular; Font f=new Font(ff,8,style); StringFormat sf=new StringFormat(); sf.FormatFlags=StringFormatFlags.DirectionVertical; g.DrawString(txt,f,new SolidBrush(Color.Blue),new Point(100,100),sf); 在线等C#windows程序设计 dataGridView底部统计行如何实现 关于实体与表的问题 多线程的问题 string问题 多行文本的一个问题 送分题,字符串替换问题 做一个通用查询 关于利用微软自建CA申请证书来实现数字签名问题!急切等待中 请问有没有这样的程序? 怎么在后台代码里面找到 DataList 中的HeaderTemplate里的LinkButton? 请教关于WinForm下生成树。
http://www.syncfusion.com/faq/windowsforms/Search/644.aspx
or
http://blog.csdn.net/knight94/archive/2006/03/25/638397.aspx
2.加入标记<br>:名<br>称
{
Graphics g = e.Graphics;
g.TranslateTransform(100.0f, 100.0f);
g.RotateTransform(-90.0f);
g.DrawString("Vertical Text", Font, Brushes.Blue, 0.0f, 0.0f);
g.ResetTransform();
g.TranslateTransform(100.0f, 100.0f);
g.RotateTransform(-45.0f);
g.DrawString("Slanted Text", new Font(Font, FontStyle.Bold), Brushes.Red, 0.0f, 0.0f);
g.ResetTransform();
}
vertStrFormat.FormatFlags = StringFormatFlags.DirectionVertical;
g.DrawString("abcd",horzFont,horzBrush,(int)((172+k*80)*bW),(int)(242*bH),vertStrFormat);
string txt="汽包水位";
FontFamily ff=new FontFamily("Times New Roman");
FontStyle style=FontStyle.Regular;
Font f=new Font(ff,8,style); StringFormat sf=new StringFormat();
sf.FormatFlags=StringFormatFlags.DirectionVertical;
g.DrawString(txt,f,new SolidBrush(Color.Blue),new Point(100,100),sf);