## INonElementParentNode.GetElementById method

Returns the first element within node's descendants whose ID is elementId.

```csharp
public Element GetElementById(string elementId)
```

| Parameter | Type | Description |
| --- | --- | --- |
| elementId | String | The element identifier. |

### Return Value

Returns the first matched element.

### See Also

* class [Element](../../element/)
* interface [INonElementParentNode](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
