Spread for ASP.NET 9.0 Product Documentation
LockForeColor Property
Example 


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 color of the text of the locked cells
Example
FpSpread1.ActiveSheetView.Cells[0, 0].Text = "Locked";
FpSpread1.ActiveSheetView.Cells[0, 0].Locked = true;
FpSpread1.ActiveSheetView.LockBackColor = Drawing.Color.Crimson;
FpSpread1.ActiveSheetView.LockForeColor = Drawing.Color.DimGray;
FpSpread1.ActiveSheetView.Cells(0, 0).Text = "Locked"
FpSpread1.ActiveSheetView.Cells(0, 0).Locked = True
FpSpread1.ActiveSheetView.LockBackColor = Drawing.Color.Crimson
FpSpread1.ActiveSheetView.LockForeColor = Drawing.Color.DimGray
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Locking a Cell

 

 


Copyright © GrapeCity, inc. All rights reserved.