Spread Windows Forms 12.0 Product Documentation
ActiveTopColor Property
Example 


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

Property Value

Color object containing the color for the top of the gradient for an active cell
Example
FarPoint.Win.Spread.CellType.GradientHeaderRenderer g = new FarPoint.Win.Spread.CellType.GradientHeaderRenderer();
g.ActiveTopColor = Color.Yellow;
g.ActiveBottomColor = Color.Orange;

fpSpread1.ActiveSheet.ColumnHeader.Cells[0, 0].Renderer = g;
Dim g As New FarPoint.Win.Spread.CellType.GradientHeaderRenderer
g.ActiveTopColor = Color.Yellow
g.ActiveBottomColor = Color.Orange

FpSpread1.ActiveSheet.ColumnHeader.Cells(0, 0).Renderer = g
See Also

Reference

GradientHeaderRenderer Class
GradientHeaderRenderer Members