■ 헤더 셀에 그라디언트를 추가하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
FarPoint.Win.Spread.CellType.GradientHeaderRenderer gradientHeaderRenderer = new FarPoint.Win.Spread.CellType.GradientHeaderRenderer ( Color.Yellow, Color.Orange, Color.YellowGreen, Color.Bisque, System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal ); fpSpread1.ActiveSheet.ColumnHeader.Rows[0].Renderer = gradientHeaderRenderer; fpSpread1.ActiveSheet.RowHeader.Columns[0].Renderer = gradientHeaderRenderer; fpSpread1.ActiveSheet.SheetCorner.DefaultStyle.Renderer = gradientHeaderRenderer; |