Spread Windows Forms 12.0 Product Documentation
GradientHeaderRenderer Constructor()
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > GradientHeaderRenderer Class > GradientHeaderRenderer Constructor : GradientHeaderRenderer Constructor()
Creates a new renderer for a gradient header.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New GradientHeaderRenderer()
public GradientHeaderRenderer()
Example
This example sets the header renderer to allow a gradient header.
FarPoint.Win.Spread.CellType.GradientHeaderRenderer gc = new FarPoint.Win.Spread.CellType.GradientHeaderRenderer();
gc.BottomColor = Color.Orange;
gc.TopColor = Color.Red;
gc.Mode = Drawing2D.LinearGradientMode.ForwardDiagonal;
fpSpread1.ActiveSheet.ColumnHeader.Rows[0].Renderer = gc
Dim gc As New FarPoint.Win.Spread.CellType.GradientHeaderRenderer
gc.BottomColor = Color.Orange
gc.TopColor = Color.Red
gc.Mode = Drawing2D.LinearGradientMode.ForwardDiagonal
FpSpread1.ActiveSheet.ColumnHeader.Rows(0).Renderer = gc
See Also

Reference

GradientHeaderRenderer Class
GradientHeaderRenderer Members
Overload List