Spread 8.0 Documentation
LockForeColor Property
Support Options
ActiveX Reference > ActiveX Properties > LockForeColor Property

Glossary Item Box

LockForeColor Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns the text color of locked cells. This property is available at run time only.

Syntax

C++

unsigned long CSpreadSheet::GetLockForeColor( );
void CSpreadSheet::SetLockForeColor(unsigned long value);

Visual Basic

[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

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