RenderText.Style.WordWrapプロパティを設定します。
| サンプルコード(VB) |
コードのコピー
|
|---|---|
' テキストを折り返して描画します。(既定の設定) texts(0).Text = "テキストを折り返して描画する" texts(0).Style.WordWrap = True ' テキストを折り返さずに描画します。 texts(1).Text = "テキストを折り返さずに描画する" texts(1).Style.WordWrap = False |
|
| サンプルコード(C#) |
コードのコピー
|
|---|---|
// テキストを折り返して描画します。(既定の設定) texts[0].Text = "テキストを折り返して描画する"; texts[0].Style.WordWrap = true; // テキストを折り返さずに描画します。 texts[1].Text = "テキストを折り返さずに描画する"; texts[1].Style.WordWrap = false; |
|