---
title: "FormEditor.GetElement"
url: "https://reference.aspose.com/html/net/aspose.html.forms/formeditor/getelement/"
product: "Aspose.HTML for .NET API Reference"
description: "FormEditor GetElement method. Returns the element by specified index"
---

## GetElement<T>(*int*) {#getelement}

Returns the element by specified index.

```csharp
public T GetElement<T>(int index)
    where T : FormElement
```

| Parameter | Description |
| --- | --- |
| T | Type of the form element |
| index | The index of the element |

### Return Value

Returns the element.

### See Also

* class [FormElement](../../formelement/)
* class [FormEditor](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)

---

## GetElement<T>(*string*) {#getelement_1}

Returns the element by specified name.

```csharp
public T GetElement<T>(string name)
    where T : FormElement
```

| Parameter | Description |
| --- | --- |
| T | Type of the form element |
| name | The element name |

### Return Value

Returns the element.

### See Also

* class [FormElement](../../formelement/)
* class [FormEditor](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)
