Gets or sets whether cells on this sheet that are marked as locked are uneditable.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property Protect As Boolean |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As SheetView
Dim value As Boolean
instance.Protect = value
value = instance.Protect
|
| C# | |
|---|
public bool Protect {get; set;} |
Return Value
Boolean:
true if cells marked as locked are uneditable;
false otherwise
Example
This example sets cells that are marked as locked to still be editable by the user.
| C# | Copy Code |
|---|
fpSpread1.ActiveSheet.Protect = false; |
| Visual Basic | Copy Code |
|---|
FpSpread1.ActiveSheet.Protect = False |
Remarks
See Also