## GridWorksheet.SetReadonlyRange method

使一系列单元格只读。 http://docs.aspose.com:8082/docs/display/cellsnet/Protecting+Cells 首先通过调用SetAllCellsEditable方法使所有单元格可编辑。 然后调用此方法指定要只读的单元格范围

```csharp
public void SetReadonlyRange(int startRow, int startColumn, int rows, int columns)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| startRow | Int32 | 范围的起始行。 |
| startColumn | Int32 | 范围的起始列。 |
| rows | Int32 | 行数。 |
| columns | Int32 | 列数。 |

### 也可以看看

* class [GridWorksheet](../../gridworksheet)
* 命名空间 [Aspose.Cells.GridWeb.Data](../../gridworksheet)
* 部件 [Aspose.Cells.GridWeb](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.GridWeb.dll -->
