## Document.GetElementById method

Restituisce l'elemento che ha un attributo ID con il valore specificato. Se tale elemento non esiste, questo restituisce null. Se più di un elemento ha un attributo ID con quel valore, ciò che viene restituito è indefinito.

```csharp
public Element GetElementById(string elementId)
```

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| elementId | String | L'elemento id. |

### Valore di ritorno

Il[`Element`](../../element/) .

### Guarda anche

* class [Element](../../element/)
* class [Document](../)
* spazio dei nomi [Aspose.Html.Dom](../../document/)
* assemblea [Aspose.HTML](../../../)


