---
title: "FormEditor.Add"
url: "https://reference.aspose.com/html/net/aspose.html.forms/formeditor/add/"
product: "Aspose.HTML for .NET API Reference"
description: "FormEditor Add method. Creates a new HTMLElement and adds it to the end of the form"
---

## FormEditor.Add<T> method

Creates a new [`HTMLElement`](../../../aspose.html/htmlelement/) and adds it to the end of the form.

```csharp
public T Add<T>(string name)
    where T : FormElement
```

| Parameter | Description |
| --- | --- |
| T | Type of form element |
| name | Name of the element |

### Return Value

A new instance of form element

### See Also

* class [FormElement](../../formelement/)
* class [FormEditor](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)
