Spread Windows Forms 6.0 Product Documentation
LockForeColor Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : LockForeColor Property


Glossary Item Box

Gets or sets the foreground color of locked cells on this sheet.

Syntax

Visual Basic (Declaration) 
Public Property LockForeColor As Color
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Color
 
instance.LockForeColor = value
 
value = instance.LockForeColor
C# 
public Color LockForeColor {get; set;}

Property Value

Color object containing the text color for locked cells

Example

This example specifies the background color and text color for locked cells.
C#Copy Code
fpSpread1.ActiveSheet.LockBackColor = Color.Red;
fpSpread1.ActiveSheet.LockForeColor = Color.Gray;
fpSpread1.ActiveSheet.Cells[0, 0, 4, 4].Locked = true;
fpSpread1.ActiveSheet.Cells[0, 0, 4, 4].Text = "Locked";
Visual BasicCopy Code
FpSpread1.ActiveSheet.LockBackColor = Color.Red
FpSpread1.ActiveSheet.LockForeColor = Color.Gray
FpSpread1.ActiveSheet.Cells(0, 0, 4, 4).Locked = True
FpSpread1.ActiveSheet.Cells(0, 0, 4, 4).Text = "Locked"

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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