SSGetGridColor, SSSetGridColor Functions
Applies To
fpSpread DLL control
Description
Set or return the color of the sheet grid lines.
Syntax
COLORREF SSGetGridColor(HWND hWnd);
COLORREF SSSetGridColor(HWND hWnd, COLORREF Color);
COLORREF TSpread::GetGridColor(void);
COLORREF TSpread::SetGridColor(COLORREF Color);
Parameters
The SSGetGridColor function has the following parameter:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
The SSSetGridColor function has the following parameters:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
Color | Grid color (Value can be SPREAD_COLOR_NONE, which specifies to use the default grid color.) |
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.
The default grid color is light gray (0x00C0C0C0).
If you use the SSSetGridType function and set your grid lines to be solid, use a gray grid color to provide the best appearance.
Return Value
Previous grid color.
See Also
SSGetGridType, SSSetGridType, SSSetSheet functions
ActiveX Correspondence
GridColor property