## GridCells.SetColumnWidth method

设置指定列的宽度。

```csharp
public void SetColumnWidth(int column, double width)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| column | Int32 | 列索引。 |
| width | Double | 列宽。列宽必须介于 0 和 255 之间。 |

### 评论

要隐藏列，请将列宽设置为零。

### 也可以看看

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

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