## RegisterAddInFunction(string, string, bool) {#registeraddinfunction}

将插件函数添加到工作簿中

```csharp
public int RegisterAddInFunction(string addInFile, string functionName, bool lib)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| addInFile | String | 该文件包含插件功能 |
| functionName | String | 插件函数名称 |
| lib | Boolean | 给定的插件文件是在工作簿插件库的目录还是子目录中。 这个标志在给定的addInFile是相对路径时生效并有所不同： true表示路径是相对于插件库，false表示路径是相对于此工作簿的。 |

### 返回值

包含给定插件功能的数据的 ID

### 也可以看看

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

---

## RegisterAddInFunction(int, string) {#registeraddinfunction_1}

将插件函数添加到工作簿中

```csharp
public string RegisterAddInFunction(int id, string functionName)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| id | Int32 | 包含插件函数的数据的ID， 可以通过第一次调用得到[`RegisterAddInFunction`](../registeraddinfunction)对于相同的插件文件。 |
| functionName | String | 插件函数名称 |

### 返回值

包含插件功能的插件文件的 URL

### 也可以看看

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

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