Spread 8.0 Documentation
SSGetGridColor, SSSetGridColor Functions
Support Options
DLL Reference > DLL Functions > SSGetGridColor, SSSetGridColor Functions

Glossary Item Box

SSGetGridColor, SSSetGridColor Functions


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Set or return the color of the sheet grid lines.

Syntax

C

COLORREF SSGetGridColor(HWND hWnd);

COLORREF SSSetGridColor(HWND hWnd, COLORREF Color);

C++

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

Customizing Grid Lines

SSGetGridType, SSSetGridType, SSSetSheet functions

ActiveX Correspondence

GridColor property

Copyright © GrapeCity, inc. All rights reserved.