{/* Do not edit this file. It is automatically generated by API Documenter. */}


## CellProtectProperties

Set cell lock or cell hiding.

**Signature:**

```typescript
export interface CellProtectProperties
```

## Remarks

Applies only to the DataCell area and cannot be applied to other areas. Used in [DataColumn.cellProtectProps](/refs/Interface/DataColumn#cellprotectprops) or [ColumnStyleObject.cellProtectProps](/refs/Interface/ColumnStyleObject#cellprotectprops){/* */}. Sheet protection must be set using [GridExportOptions.sheetProtect](/refs/Interface/GridExportOptions#sheetprotect){/* */} to be applied.

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [hidden](/refs/Interface/CellProtectProperties#hidden) | string | Hide formula |
| [locked](/refs/Interface/CellProtectProperties#locked) | string | lock |

## Properties Desc

### hidden

Hide formula

`Type` - string

**Remarks:**

To hide the formula in a cell, set `hidden`{/* */} to `'1'`{/* */}.

<hr/>

### locked

lock

`Type` - string

**Remarks:**

The default setting for Excel cells is locked. Set `locked`{/* */} to `'0'`{/* */} for only columns or cells that can be entered.

<hr/>