public System.bool Locked {get; set;}
'Declaration Public Property Locked As System.Boolean
Sheets and styles can be locked. By default, sheets are unlocked and styles are locked. This combination allows users to edit the cells in Excel.
To protect a cell against editing in Excel, both the sheet and the cell style must have the Locked property set to true.
To lock most cells on a sheet and allow editing of only a few cells, lock the sheet, then create an unlocked style and assign it to the cells that should be editable.