string myText = "Vertical text"; FontFamily fontFamily = new FontFamily("Lucida Console"); Font font = new Font( fontFamily, 14, FontStyle.Regular, GraphicsUnit.Point); PointF pointF = new PointF(40, 10); StringFormat stringFormat = new StringFormat(); SolidBrush solidBrush = new SolidBrush(Color.FromArgb(255, 0, 0, 255)); stringFormat.FormatFlags = StringFormatFlags.DirectionVertical; e.Graphics.DrawString(myText, font, solidBrush, pointF, stringFormat);
29 January 2014
How to Create Vertical Text in c#.net
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment