LockForeColor Property
Applies To
fpSpread control
Description
Sets or returns the text color of locked cells. This property is available at run time only.
Syntax
unsigned long CSpreadSheet::GetLockForeColor( );
void CSpreadSheet::SetLockForeColor(unsigned long value);
[form.]fpSpread.LockForeColor[ = color]
Remarks
The default value for the LockForeColor property is SPREAD_COLOR_NONE. When the LockForeColor property is set to this value, the current cell text color set by the ForeColor property is used for the locked cells.
This setting is applied to the current sheet setting unless you first set the Sheet property to specify the sheet for which you are setting the property.
This property does not have an effect unless one or more cells are marked as locked (their Lock property is set to True) and the Protect property is set to True.
Set the background color for locked cells using the LockBackColor property.
Spread Designer
Choose the Sheet menu, then the Sheet Colors menu, select the Sheet Colors tab, and then choose LockForeColor from the Property drop-down list box in the Sheet Settings dialog box.
Data Type
Color
See Also
Setting Background and Text Colors for Locked Cells
ForeColor, Lock, LockBackColor, Protect, Sheet properties
DLL Correspondence
SSGetLockColor, SSSetLockColor functions