回复 1楼edsoft的帖子
edsoft 你好
你可以通过以下代码来设置列头网格线的颜色:
- FarPoint.Win.Spread.StyleInfo darkstyle = new FarPoint.Win.Spread.StyleInfo();
- darkstyle.BackColor = Color.White;
- darkstyle.ForeColor = Color.Black;
- fpSpread1.Sheets[0].ColumnHeader.DefaultStyle = darkstyle;
- fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.ColumnHeaderRenderer();
-
- fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.VisualStyles = FarPoint.Win.VisualStyles.Off;
- FarPoint.Win.Spread.GridLine cgdln = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Flat,Color.Black);
- fpSpread1.Sheets[0].ColumnHeader.RowCount = 3;
- fpSpread1.Sheets[0].ColumnHeader.VerticalGridLine = cgdln;
- fpSpread1.Sheets[0].ColumnHeader.HorizontalGridLine = cgdln;
复制代码 |