Reports for WinForms
境界線を描画する

RenderObject.Style.Bordersプロパティを設定します。

実行例


サンプルコード(VB)
コードのコピー
' 上の境界線を描画します。
texts(0).Text = "上"
texts(0).Style.Borders.Top = LineDef.Default

' 下の境界線を描画します。
texts(1).Text = "下"
texts(1).Style.Borders.Bottom = LineDef.Default

' 左の境界線を描画します。
texts(2).Text = "左"
texts(2).Style.Borders.Left = LineDef.Default

' 右の境界線を描画します。
texts(3).Text = "右"
texts(3).Style.Borders.Right = LineDef.Default

' 上下左右すべての境界線を描画します。
texts(4).Text = "すべて"
texts(4).Style.Borders.All = LineDef.Default
サンプルコード(C#)
コードのコピー
// 上の境界線を描画します。
texts[0].Text = "上";
texts[0].Style.Borders.Top = LineDef.Default;

// 下の境界線を描画します。
texts[1].Text = "下";
texts[1].Style.Borders.Bottom = LineDef.Default;

// 左の境界線を描画します。
texts[2].Text = "左";
texts[2].Style.Borders.Left = LineDef.Default;

// 右の境界線を描画します。
texts[3].Text = "右";
texts[3].Style.Borders.Right = LineDef.Default;

// 上下左右すべての境界線を描画します。
texts[4].Text = "すべて";
texts[4].Style.Borders.All = LineDef.Default;
関連トピック