## SetStyle(int, int, int, int, GridTableItemStyle) {#setstyle}

将样式设置为指定范围的单元格。

```csharp
public void SetStyle(int firstRow, int firstColumn, int rowNumber, int columnNumber, 
    GridTableItemStyle style)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| firstRow | Int32 | 此范围的第一行（从零开始） |
| firstColumn | Int32 | 此范围的第一列（从零开始） |
| rowNumber | Int32 | 行数（基于一个） |
| columnNumber | Int32 | 列数（基于一个） |
| style | GridTableItemStyle | 要设置的样式对象 |

### 也可以看看

* class [GridTableItemStyle](../../../aspose.cells.gridweb/gridtableitemstyle)
* class [GridCells](../../gridcells)
* 命名空间 [Aspose.Cells.GridWeb.Data](../../gridcells)
* 部件 [Aspose.Cells.GridWeb](../../../)

---

## SetStyle(string, GridTableItemStyle) {#setstyle_1}

将样式设置为指定范围的单元格。

```csharp
public void SetStyle(string cellRange, GridTableItemStyle style)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| cellRange | String | 单元格名称的范围，例如“A1:D6” |
| style | GridTableItemStyle | 要设置的样式对象 |

### 也可以看看

* class [GridTableItemStyle](../../../aspose.cells.gridweb/gridtableitemstyle)
* class [GridCells](../../gridcells)
* 命名空间 [Aspose.Cells.GridWeb.Data](../../gridcells)
* 部件 [Aspose.Cells.GridWeb](../../../)

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