テキストが特定の幅で折り返されるポイントで、文字列を配列に分割したい
これが文字列だとします。テキスト幅を 300 にしたい:
I want to split a string into an array at a point where the text wraps for a given width
そして、次のような関数を使用します:
Text.SplitAtWrap(300,Text)
これは私が望む出力です:
(0) I want to split a string into an
(1) array at a point where the text
(2) wraps for a given width
編集:おそらくフォントを考慮する必要があるため、おそらく使用する必要がありますDrawing.Graphics
。