■ 헤더 그리드 라인을 설정하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
fpSpread1.ActiveSheet.VisualStyles = FarPoint.Win.VisualStyles.Off; fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.ColumnHeaderRenderer(); fpSpread1.ActiveSheet.RowHeader.DefaultStyle.Renderer = new FarPoint.Win.Spread.CellType.RowHeaderRenderer(); FarPoint.Win.Spread.GridLine redGridLine = new FarPoint.Win.Spread.GridLine ( FarPoint.Win.Spread.GridLineType.Raised, Color.Purple, Color.Red, Color.Orange ); FarPoint.Win.Spread.GridLine blueGridLine = new FarPoint.Win.Spread.GridLine ( FarPoint.Win.Spread.GridLineType.Raised, Color.Purple, Color.Blue, Color.LightBlue ); fpSpread1.ActiveSheet.ColumnHeader.RowCount = 3; fpSpread1.ActiveSheet.RowHeader.ColumnCount = 2; fpSpread1.ActiveSheet.ColumnHeader.HorizontalGridLine = blueGridLine; fpSpread1.ActiveSheet.ColumnHeader.VerticalGridLine = blueGridLine; fpSpread1.ActiveSheet.RowHeader.HorizontalGridLine = redGridLine; fpSpread1.ActiveSheet.RowHeader.VerticalGridLine = redGridLine; |