Spread Windows Forms 12.0 Product Documentation
GradientHeaderRenderer Constructor(Color,Color,Color,Color,LinearGradientMode,Color,Color)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > GradientHeaderRenderer Class > GradientHeaderRenderer Constructor : GradientHeaderRenderer Constructor(Color,Color,Color,Color,LinearGradientMode,Color,Color)
Color at the top of the gradient
Color at the bottom of the gradient
Color at the top when the header cell is active
Color at the bottom when the header cell is active
Mode of the linear gradient
Color at the top of gradient when the column or row of header cell contains a selection
Color at the bottom of the gradient when the column or row of header cell contains a selection
Creates a new renderer for a gradient header with color and mode specified.
Syntax
'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
)

Parameters

topColor
Color at the top of the gradient
bottomColor
Color at the bottom of the gradient
activeTopColor
Color at the top when the header cell is active
activeBottomColor
Color at the bottom when the header cell is active
mode
Mode of the linear gradient
selTopColor
Color at the top of gradient when the column or row of header cell contains a selection
selBottomColor
Color at the bottom of the gradient when the column or row of header cell contains a selection
Example
This example creates a gradient header renderer.
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
See Also

Reference

GradientHeaderRenderer Class
GradientHeaderRenderer Members
Overload List