Reports for WinForms
文字幅を設定する

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

実行例


サンプルコード(VB)
コードのコピー
' 文字幅を150%に設定します。
texts(0).Text = "文字幅 = 150%"
texts(0).Style.CharWidth = 150

' 文字幅を設定しません。
texts(1).Text = "文字幅 = 100%"

' 文字幅を75%に設定します。
texts(2).Text = "文字幅 = 75%"
texts(2).Style.CharWidth = 75
サンプルコード(C#)
コードのコピー
// 文字幅を150%に設定します。
texts[0].Text = "文字幅 = 150%";
texts[0].Style.CharWidth = 150;

// 文字幅を設定しません。
texts[1].Text = "文字幅 = 100%";

// 文字幅を75%に設定します。
texts[2].Text = "文字幅 = 75%";
texts[2].Style.CharWidth = 75;
関連トピック