如何在 Visual Basic .NET 2005 中使用 DrawString 创建自动换行效果?
最佳答案
http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=286
You can draw text in a rectangle by passing a RectangleF object to the DrawString method. GDI+ will wrap the text to make it fit in the specified rectangle. For example:
Dim s As String = "This string will be wrapped in the output rectangle"
Dim rectf As New RectangleF(10, 100, 200, 200)
grf.DrawString(s, myFont, Brushes.Red, rectf)
关于vb.net - Windows 窗体中的自动换行 (vb.net),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/788311/