GDI文字对齐

 

 '右对齐
Dim al As New System.Drawing.StringFormat
 al.Alignment = StringAlignment.Far
 G.DrawString("测试文字", New Font("宋体", 12, FontStyle.Regular, GraphicsUnit.Pixel), Brushes.Yellow, New Point(0, 0), al)

 

posted @ 2012-07-03 04:22  rf8862  阅读(186)  评论(0)    收藏  举报