@serpilsc40 mevcut kodunuzda kullanığınız yöntemin bir overload'ında "layoutRectangle" parametresi var. Bu, metnin o çerçeveye sığdırılacağı, yani gerektiğinde wordwrap işlemini kendi başına yapacağı anlamına gelir.
Visual Studio' da aşağıdaki gibi açıklanmış:
Public Sub DrawString(s As String, font As System.Drawing.Font, brush As System.Drawing.Brush, layoutRectangle As System.Drawing.RectangleF, format As System.Drawing.StringFormat)
Summary:
Draws the specified text string in the specified rectangle with the specified System.Drawing.Brush and System.Drawing.Font objects using the formatting attributes of the specified System.Drawing.StringFormat.
Parameters:
s: String to draw.
font: System.Drawing.Font that defines the text format of the string.
brush: System.Drawing.Brush that determines the color and texture of the drawn text.
layoutRectangle: System.Drawing.RectangleF structure that specifies the location of the drawn text.
format: System.Drawing.StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text.