SetEnhancedColumnHeaderColors Method
Applies To
fpSpread control
Description
Sets the background colors for the column headers.
Syntax
BOOL CSpreadSheet::SetEnhancedColumnHeaderColors(long clrSelectedHoverUpperColor, long clrSelectedHoverLowerColor, long clrSelectedUpperColor, long clrSelectedLowerColor,long clrHoverUpperColor, long clrHoverLowerColor,long clrUpperColor, long clrUpperColor,long clrSelectedBorderColor, long clrBorderColor);
fpSpread.SetEnhancedColumnHeaderColors(ByVal clrSelectedHoverUpperColor As Long, ByVal clrSelectedHoverLowerColor As Long, ByVal clrSelectedUpperColor As Long, ByVal clrSelectedLowerColor As Long, ByVal clrHoverUpperColor As Long, ByVal clrHoverLowerColor As Long, ByVal clrUpperColor As Long, ByVal clrLowerColor As Long, ByVal clrSelectedBorderColor As Long, ByVal clrBorderColor As Long) As Boolean
Parameters
The following parameters are available:
Parameter | Description |
---|---|
clrSelectedHoverUpperColor | Selected, active background column header color of the upper half of the header when the mouse pointer is over the header (default value is RGB(255,212,141) |
clrSelectedHoverLowerColor | Selected, active background column header color of the lower half of the header when the mouse pointer is over the header (default value is RGB(242,147,59) |
clrSelectedUpperColor | Selected, upper background color of the active column header (default value is RGB(249,217,159) |
clrSelectedLowerColor | Selected, lower background color of the active column header (default value is RGB(241,193,96) |
clrHoverUpperColor | Upper background color of the column header when the mouse pointer is over the header (default value is RGB(223,226,228) |
clrHoverLowerColor | Lower background color of the column header when the mouse pointer is over the header (default value is RGB(189,197,210) |
clrUpperColor | Background color of the upper half of the header (default value is RGB(249,252,253) |
clrLowerColor | Background color of the lower half of the header (default value is RGB(211,220,233) |
clrSelectedBorderColor | Border color of the column header when the column is selected (default value is RGB(242,149,54) |
clrBorderColor | Border color of the column header (default value is RGB(158,182,206) |
Remarks
The selected color is the color of the selected column or the color of the column header where the active cell is located.
The hover color is the color under the mouse pointer (not the selected or active column). If you move the mouse pointer over a header but, do not click on it, this is the hover color. The upper color is the upper half of the column header and the lower color is the lower half of the column header.
This method is called for the current sheet setting unless you first set the Sheet property to specify the sheet with which you want to work.
Return Type
True if successful; otherwise, False.
See Also
Setting the Header Background and Text Colors
BackColor, ForeColor, Sheet, EnhanceStaticCells properties
SetEnhancedRowHeaderColors, SetEnhancedSheetTabColors methods
DLL Correspondence
SSSetEnhancedColumnHeaderColors function