## FormEditor.CreateNew method

Creates a new [`HTMLFormElement`](../../../aspose.html/htmlformelement/) and associated it with [`FormEditor`](../). [`HTMLFormElement`](../../../aspose.html/htmlformelement/) is created in the detached from the document state; in order to attach it to the document, please select proper location and use [`AppendChild`](../../../aspose.html.dom/node/appendchild/) method.

```csharp
public static FormEditor CreateNew(HTMLDocument document)
```

| Parameter | Type | Description |
| --- | --- | --- |
| document | HTMLDocument | The [`HTMLDocument`](../../../aspose.html/htmldocument/). |

### Return Value

Return a new instance of the [`FormEditor`](../) class

### See Also

* class [HTMLDocument](../../../aspose.html/htmldocument/)
* class [FormEditor](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)
