Spread 8.0 Documentation
SSGetOddEvenRowColor, SSSetOddEvenRowColor Functions
Support Options
DLL Reference > DLL Functions > SSGetOddEvenRowColor, SSSetOddEvenRowColor Functions

Glossary Item Box

SSGetOddEvenRowColor, SSSetOddEvenRowColor Functions


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Set or return the background and text colors for odd and even rows.

Syntax

C

BOOL SSGetOddEvenRowColor(HWND hWnd, LPCOLORREF lpclrBackOdd, LPCOLORREF lpclrForeOdd, LPCOLORREF lpclrBackEven, LPCOLORREF lpclrForeEven);

BOOL SSSetOddEvenRowColor(HWND hWnd, COLORREF clrBackOdd, COLORREF clrForeOdd, COLORREF clrBackEven, COLORREF clrForeEven);

C++

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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.