Spread Windows Forms 10.0 Product Documentation
LockBackColor Property (SheetView)
Example 


Gets or sets the background color of locked cells on this sheet.
Syntax
'Declaration
 
Public Property LockBackColor As Color
'Usage
 
Dim instance As SheetView
Dim value As Color
 
instance.LockBackColor = value
 
value = instance.LockBackColor
public Color LockBackColor {get; set;}

Property Value

Color object containing the background 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"
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

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

User-Task Documentation

Locking a Cell

 

 


Copyright © GrapeCity, inc. All rights reserved.