开发环境:Win10 + Visual Studio 2017 + SPREAD for Windows Forms 11.0J
想要的结果是:1.单击单元格或者选择多个单元格时,选中的单元格背景色前景色改变,选中的单元格的列头和行头的背景色前景色不改变
2.单击行头或者列头时,选中的行头或者列头的背景色前景色改变,选中的行或者列的背景色前景色改变。
现在的结果是:
1实现了,2没有实现,选中的行头和列头的前景色改变了,但是背景色没改变。
Spread的选择背景色相关属性设置如下:
OperationMode = Normal
SelectionStyle = FarPoint.Win.Spread.SelectionStyles.SelectionColors
SelectionForeColor = System.Drawing.Color.White
SelectionBackColor = System.Drawing.Color.Black
ColumnHeader.DefaultStyle.Renderer = EnhancedRowHeaderRenderer3
EnhancedRowHeaderRenderer3.ActiveBackgroundColor = System.Drawing.SystemColors.Control
EnhancedRowHeaderRenderer3.BackColor = System.Drawing.SystemColors.Control
EnhancedRowHeaderRenderer3.ForeColor = System.Drawing.SystemColors.ControlText
EnhancedRowHeaderRenderer3.SelectedActiveBackgroundColor = System.Drawing.SystemColors.Control
EnhancedRowHeaderRenderer3.SelectedBackgroundColor = System.Drawing.SystemColors.Control
RowHeader.DefaultStyle.Renderer = EnhancedRowHeaderRenderer4
EnhancedRowHeaderRenderer4.ActiveBackgroundColor = System.Drawing.SystemColors.Control
EnhancedRowHeaderRenderer4.BackColor = System.Drawing.SystemColors.Control
EnhancedRowHeaderRenderer4.ForeColor = System.Drawing.SystemColors.ControlText
EnhancedRowHeaderRenderer4.SelectedActiveBackgroundColor = System.Drawing.SystemColors.Control
EnhancedRowHeaderRenderer4.SelectedBackgroundColor = System.Drawing.SystemColors.Control
请版主帮帮忙,我需要在设置哪些属性,才能实现我想要的结果
|
|