GanttView for WinForms
背景色
スタイルと外観 > 背景色

GanttView lets you customize the back color of highlighted cells, fixed cells, and toolbar. This section discusses how you can set the back color of various elements in the Ganttview.

Displays customized back color of fixed cells, and highlighted cells in the GanttView.

Set Back Color of Fixed Cells

Fixed cells appear in the top row and the left-most column of the grid. To set the back color of these fixed cells, you can use the FixedBackColor property of the C1GanttView class.

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

C#
コードのコピー
//固定セルの背景色を設定します。
c1GanttView1.FixedBackColor= Color.LavenderBlush;

Set Back Color of Toolbar

C1GanttView Toolbar appears at the top of the GanttView control when the ShowToolbar property of the C1GanttView class is set to True. You can customize the back color of the toolbar by using the ToolbarBackColor property of the C1GanttView class.

Below code snippet shows how you can set the back color of the toolbar in the GanttView control.

C#
コードのコピー
//ツールバーの背景色を設定します。
c1Ganttview1.ToolbarBackColor = Color.LightGray;

Set Back Color of Highlighted cell

GanttView enables you to change the back color of the highlighted cells. You can use the HighlightBackColor property of the Ganttview class to customize the back color of the highlighted cell.

Below code snippet shows how you can customize the back color of the highlighted cell in the GanttView.

C#
コードのコピー
//強調表示されたセルの色を戻します。
c1Ganttview1.HighlightBackColor = Color.Red;