## Add(string, string) {#add_1}

Definisce un nuovo nome globale.

```csharp
public int Add(string text, string refersTo)
```

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| text | String | Nome testo.Può avere nomefoglio. |
| refersTo | String | La formula a cui il nome è definito per fare riferimento. Deve avere un nomefoglio .es.'foglio ciao!'A1:B2. |

### Valore di ritorno

Nome indice oggetto.

### Guarda anche

* class [GridNameCollection](../../gridnamecollection)
* spazio dei nomi [Aspose.Cells.GridWeb.Data](../../gridnamecollection)
* assemblea [Aspose.Cells.GridWeb](../../../)

---

## Add(int, string, string) {#add}

Definisce un nuovo nome nel foglio specificato.

```csharp
public int Add(int sheetIndex, string text, string refersTo)
```

| Parametro | Descrizione |
| --- | --- |
| sheetIndex | L'indice del foglio in cui viene applicato il nome. |
| text | Nome testo.Non può avere nomefoglio. |
| refersTo | La formula a cui il nome è definito per fare riferimento. Deve avere sheetname .eg.'sheet hello!'A1:B2. |
| sheetIndex | Nome SheetIndex, l'indice è da 1. |

### Valore di ritorno

Nome indice oggetto.

### Guarda anche

* class [GridNameCollection](../../gridnamecollection)
* spazio dei nomi [Aspose.Cells.GridWeb.Data](../../gridnamecollection)
* assemblea [Aspose.Cells.GridWeb](../../../)

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