FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > GradientHeaderRenderer Class > GradientHeaderRenderer Constructor : GradientHeaderRenderer Constructor(Color,Color,Color,Color,LinearGradientMode,Color,Color) |
'Declaration Public Function New( _ ByVal topColor As Color, _ ByVal bottomColor As Color, _ ByVal activeTopColor As Color, _ ByVal activeBottomColor As Color, _ ByVal mode As LinearGradientMode, _ ByVal selTopColor As Color, _ ByVal selBottomColor As Color _ )
'Usage Dim topColor As Color Dim bottomColor As Color Dim activeTopColor As Color Dim activeBottomColor As Color Dim mode As LinearGradientMode Dim selTopColor As Color Dim selBottomColor As Color Dim instance As New GradientHeaderRenderer(topColor, bottomColor, activeTopColor, activeBottomColor, mode, selTopColor, selBottomColor)
public GradientHeaderRenderer( Color topColor, Color bottomColor, Color activeTopColor, Color activeBottomColor, LinearGradientMode mode, Color selTopColor, Color selBottomColor )
FarPoint.Win.Spread.CellType.GradientHeaderRenderer gr = new FarPoint.Win.Spread.CellType.GradientHeaderRenderer(Color.Yellow, Color.Orange, Color.YellowGreen, Color.Bisque, System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal, Color.Plum, Color.Purple);
fpSpread1.ActiveSheet.ColumnHeader.Rows[0].Renderer = gr;
Dim gr As New FarPoint.Win.Spread.CellType.GradientHeaderRenderer(Color.Yellow, Color.Orange, Color.YellowGreen, Color.Bisque, System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal, Color.Plum, Color.Purple) FpSpread1.ActiveSheet.ColumnHeader.Rows(0).Renderer = gr
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10