Reports for WinForms
英単語の途中で折り返すかどうかを設定する

RenderText.Style.WordWrapModeプロパティを設定します。

実行例


サンプルコード(VB)
コードのコピー
' 英単語の途中で折り返して描画します。
texts(0).Text = "英単語の折り返し1234567890テキスト"
texts(0).Style.WordWrapMode = WordWrapMode.BreakWord

' 英単語の途中で折り返さずに描画します。(既定の設定)
texts(1).Text = "英単語の折り返し1234567890テキスト"
texts(1).Style.WordWrapMode = WordWrapMode.Normal
サンプルコード(C#)
コードのコピー
// 英単語の途中で折り返して描画します。
texts[0].Text = "英単語の折り返し1234567890テキスト";
texts[0].Style.WordWrapMode = WordWrapMode.BreakWord;

// 英単語の途中で折り返さずに描画します。(既定の設定)
texts[1].Text = "英単語の折り返し1234567890テキスト";
texts[1].Style.WordWrapMode = WordWrapMode.Normal;
関連トピック