Spread Windows Forms 12.0 Product Documentation
BottomColor Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > GradientHeaderRenderer Class : BottomColor Property
Gets or sets the color of the bottom of the gradient.
Syntax
'Declaration
 
Public Property BottomColor As Color
'Usage
 
Dim instance As GradientHeaderRenderer
Dim value As Color
 
instance.BottomColor = value
 
value = instance.BottomColor
public Color BottomColor {get; set;}

Property Value

Color object containing the color for the bottom of the gradient
Example
This example sets 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