SSGetOddEvenRowColor, SSSetOddEvenRowColor Functions
Applies To
fpSpread DLL control
Description
Set or return the background and text colors for odd and even rows.
Syntax
BOOL SSGetOddEvenRowColor(HWND hWnd, LPCOLORREF lpclrBackOdd, LPCOLORREF lpclrForeOdd, LPCOLORREF lpclrBackEven, LPCOLORREF lpclrForeEven);
BOOL SSSetOddEvenRowColor(HWND hWnd, COLORREF clrBackOdd, COLORREF clrForeOdd, COLORREF clrBackEven, COLORREF clrForeEven);
BOOL TSpread::GetOddEvenRowColor(LPCOLORREF lpclrBackOdd, LPCOLORREF lpclrForeOdd, LPCOLORREF lpclrBackEven, LPCOLORREF lpclrForeEven);
BOOL TSpread::SetOddEvenRowColor(COLORREF clrBackOdd, COLORREF clrForeOdd, COLORREF clrBackEven, COLORREF clrForeEven);
Parameters
The following parameters are available:
Parameter | Description |
---|---|
hWnd | Window handle of the fpSpread control |
lpclrBackOdd or clrBackOdd | Background color of odd rows |
lpclrForeOdd or clrForeOdd | Text color of odd rows |
lpclrBackEven or clrBackEven | Background color of even rows |
lpclrForeEven or clrForeEven | Text color of even rows |
Remarks
This function is applied to the current sheet setting unless you first call the SSSetSheet function to specify the sheet for which you are calling this function.
Call these functions to set or return the different background and text colors displayed in odd and even rows.
If you called the SSSetColor or SSSetColorRange function and set the Background or Foreground parameters for a cell, the cell setting will override the odd or even row colors set using this function. For more information, see Precedence of Settings.
Return Type
TRUE if the function completes successfully; FALSE otherwise.
See Also
Precedence of Settings
Setting Odd and Even Row Colors
SSGetColor, SSSetColor, SSSetColorRange, SSSetSheet functions
ActiveX Correspondence
SSGetOddEvenRowColor: GetOddEvenRowColor method
SSSetOddEvenRowColor: SetOddEvenRowColor method