Dim sf As New StringFormat() sf.Alignment = StringAlignment.Far
Dim rct As New Rectangle(10, 10, cs.Width, cs.Height * 2) Dim flags = TextFormatFlags.Right Or TextFormatFlags.NoPrefix Or TextFormatFlags.WordBreak TextRenderer.DrawText(g, str, addFnt, rct, Color.Black, flags)