## Insert(int, string) {#insert}

```csharp
public Worksheet Insert(int index, string sheetName)
```

| 范围 | 描述 |
| --- | --- |
| sheetName | 工作表名称。 |

### 返回值

返回插入的工作表。

### 也可以看看

* class [Worksheet](../../worksheet)
* class [WorksheetCollection](../../worksheetcollection)
* 命名空间 [Aspose.Cells.GridDesktop](../../worksheetcollection)
* 部件 [Aspose.Cells.GridDesktop](../../../)

---

## Insert(int) {#insert_1}

在指定索引处将工作表插入到 WorksheetCollection 中。 此工作表行数为 256，列数为 32。 工作表名称将由 Add() 方法生成。

```csharp
public void Insert(int index)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| index | Int32 | 应插入工作表的从零开始的索引。 |

### 返回值

添加了返回工作表对象。

### 也可以看看

* class [WorksheetCollection](../../worksheetcollection)
* 命名空间 [Aspose.Cells.GridDesktop](../../worksheetcollection)
* 部件 [Aspose.Cells.GridDesktop](../../../)

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