你好,请设置表单的 SelectionBackColorStyle 属性实现该效果,请使用以下代码查看效果:
- FarPoint.Web.Spread.StyleInfo darkstyle = new FarPoint.Web.Spread.StyleInfo();
- //darkstyle.
- darkstyle.BackColor = Color.Teal;
- darkstyle.ForeColor = Color.Yellow;
- darkstyle.Border = new FarPoint.Web.Spread.Border(Color.Crimson);
- // Apply the new style.
- FpSpread1.ActiveSheetView.ColumnHeader.RowCount = 2;
- FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = darkstyle;
- this.FpSpread1.ActiveSheetView.SelectionBackColorStyle = FarPoint.Web.Spread.SelectionBackColorStyles.None;
复制代码 |