Drawstring word wrap or display entire text

后端 未结 1 1903
礼貌的吻别
礼貌的吻别 2020-12-07 01:09

This is the output i get when i use DrawString.

I=Smith,John II=Johnson,Mark III=Anderson,James IV=William,Craig V=Ford,He...

相关标签:
1条回答
  • 2020-12-07 01:23

    You can "word wrap" the text by using a bounding rectangle.

    Use Graphics.DrawString Method (String, Font, Brush, RectangleF, StringFormat)

    The RectangleF specifies the draw area and it will automatically "wrap" your text for you.

    0 讨论(0)
提交回复
热议问题