GanttView for WinForms
境界線の色
スタイルと外観 > 境界線の色

GanttView lets you customize the border of the entire grid as well as individual cells by changing border style, color, and so on.

Displays customized grid borders in the GanttView.

Customize Grid Border

You can use the BorderStyle property which takes BorderStyle enumeration as an input to set the border style of the grid.
Below code snippet shows how you can customize the border style of the entire grid.

C#
コードのコピー
//グリッドの境界線スタイルを設定します。
c1GanttView1.BorderStyle= BorderStyle.FixedSingle;

Customize Cell Border

To customize the border color of all the cells in the grid, you can use the CellBorderColor property of the C1GanttView class.

Below code snippet shows how you can customize the border color of the cells in the GanttView control.

C#
コードのコピー
//セルの境界線の色を設定します。
c1GanttView1.CellBorderColor= Color.Blue;

Customize Fixed Cell Border Color

Fixed cells refer to those cells which appear in the top row and the left-most column of the grid. You can customize the border color of these fixed cells by using the FixedCellBorderColor property of the C1GanttView class.

Below code snippet shows how you can customize the border color of the fixed cells in the GanttView control.

C#
コードのコピー
//固定セルの境界線の色を設定します。
c1GanttView1.FixedCellBorderColor= Color.Green;