Spread Windows Forms 12.0 Product Documentation
LockForeColor Property (SheetView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : LockForeColor Property
Gets or sets the foreground color of locked cells on this sheet.
Syntax
'Declaration
 
Public Property LockForeColor As Color
'Usage
 
Dim instance As SheetView
Dim value As Color
 
instance.LockForeColor = value
 
value = instance.LockForeColor
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.
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";
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"
See Also

Reference

SheetView Class
SheetView Members
Locked (Cell)
Locked (Column)
Locked (Row)
Locked (AltRow)

User-Task Documentation

Locking a Cell