Spread ASP.NET 6.0 Product Documentation
LockForeColor Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.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 color of the text of the locked cells

Example

C#Copy Code
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;
Visual BasicCopy Code
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Locking a Cell

© 2002-2012 GrapeCity, Inc. All Rights Reserved.