## ProtectedRangeCollection.Add method

添加一个[`ProtectedRange`](../../protectedrange)项目到集合.

```csharp
public int Add(string name, int startRow, int startColumn, int endRow, int endColumn)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| name | String | 范围标题。这用作描述符，而不是命名范围定义。 |
| startRow | Int32 | 范围的起始行索引。 |
| startColumn | Int32 | 范围的起始列索引。 |
| endRow | Int32 | 范围的结束行索引。 |
| endColumn | Int32 | 范围的结束列索引。 |

### 返回值

对象索引。

### 也可以看看

* class [ProtectedRangeCollection](../../protectedrangecollection)
* 命名空间 [Aspose.Cells](../../protectedrangecollection)
* 部件 [Aspose.Cells](../../../)

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