回复 1楼Soft_Killer的帖子
抱歉,无直接设置的属性,需要自定义RowHeader的PainCell函数--通过Graphic进行自绘单元格。
参考的C#代码:
- fpSpread1.ActiveSheet.RowHeader.DefaultStyle.Renderer = new MyEnhancedColumnHeaderRenderer();
- public class MyEnhancedColumnHeaderRenderer : FarPoint.Win.Spread.CellType.RowHeaderRenderer
- {
- public override void PaintCell(Graphics g, Rectangle r, FarPoint.Win.Spread.Appearance appearance, object value, bool isSelected, bool isLocked, float zoomFactor)
- {
- appearance.ContainsSelection = false;
- //需要在此处理
- base.PaintCell(g, r, appearance, value, isSelected, isLocked, zoomFactor);
- }
- }
复制代码 |