Spread Windows Forms 10.0 Product Documentation
ActiveBackgroundColor Property (EnhancedColumnHeaderRenderer)
Example 


Gets or sets the color of the active background.
Syntax
'Declaration
 
Public Property ActiveBackgroundColor As Color
'Usage
 
Dim instance As EnhancedColumnHeaderRenderer
Dim value As Color
 
instance.ActiveBackgroundColor = value
 
value = instance.ActiveBackgroundColor
public Color ActiveBackgroundColor {get; set;}

Property Value

Color of the background when the cell is active
Example
This example sets the color scheme for the renderer of the column header.
FarPoint.Win.Spread.CellType.EnhancedColumnHeaderRenderer ec = new FarPoint.Win.Spread.CellType.EnhancedColumnHeaderRenderer();
ec.ActiveBackgroundColor = Color.Azure;
ec.SelectedActiveBackgroundColor = Color.Bisque;
ec.SelectedBackgroundColor = Color.Crimson;
ec.SelectedGridLineColor = Color.Red;
ec.NormalBackgroundColor = Color.Beige;
ec.NormalGridLineColor = Color.DarkOrange;
fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.Renderer = ec;
Dim ec As New FarPoint.Win.Spread.CellType.EnhancedColumnHeaderRenderer
ec.ActiveBackgroundColor = Color.Azure
ec.SelectedActiveBackgroundColor = Color.Bisque
ec.SelectedBackgroundColor = Color.Crimson
ec.SelectedGridLineColor = Color.Red
ec.NormalBackgroundColor = Color.Beige
ec.NormalGridLineColor = Color.DarkOrange
FpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.Renderer = ec
Requirements

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

See Also

Reference

EnhancedColumnHeaderRenderer Class
EnhancedColumnHeaderRenderer Members

 

 


Copyright © GrapeCity, inc. All rights reserved.