Spread Windows Forms 11.0 Product Documentation
EnhancedColumnHeaderRenderer Constructor()
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > EnhancedColumnHeaderRenderer Class > EnhancedColumnHeaderRenderer Constructor : EnhancedColumnHeaderRenderer Constructor()
Creates a new painter of the column header cells from default values.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New EnhancedColumnHeaderRenderer()
public EnhancedColumnHeaderRenderer()
Example
This example customizes the column header renderer.
FarPoint.Win.Spread.CellType.EnhancedColumnHeaderRenderer rend = new FarPoint.Win.Spread.CellType.EnhancedColumnHeaderRenderer();
rend.ActiveBackgroundColor = Color.Bisque;
rend.NormalBackgroundColor = Color.Crimson;
rend.NormalGridLineColor = Color.DarkRed;
rend.SelectedActiveBackgroundColor = Color.Tomato;
rend.SelectedBackgroundColor = Color.Plum;
rend.SelectedGridLineColor = Color.Firebrick;
fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.Renderer = rend;
Dim rend As New FarPoint.Win.Spread.CellType.EnhancedColumnHeaderRenderer
rend.ActiveBackgroundColor = Color.Bisque
rend.NormalBackgroundColor = Color.Crimson
rend.NormalGridLineColor = Color.DarkRed
rend.SelectedActiveBackgroundColor = Color.Tomato
rend.SelectedBackgroundColor = Color.Plum
rend.SelectedGridLineColor = Color.Firebrick
FpSpread1.ActiveSheet.ColumnHeader.DefaultStyle.Renderer = rend
See Also

Reference

EnhancedColumnHeaderRenderer Class
EnhancedColumnHeaderRenderer Members
Overload List