create method
Contents
[
Hide
]create
Creates a new FormEditor based on HTMLFormElement.
Returns
Return a new instance of the FormEditor class
def create(self, form):
...
| Parameter | Type | Description |
|---|---|---|
| form | HTMLFormElement | The html form element |
create
Creates a new FormEditor based on HTMLFormElement selected from the HTMLDocument.forms collection by index.
Returns
Return a new instance of the FormEditor class
def create(self, document, index):
...
| Parameter | Type | Description |
|---|---|---|
| document | HTMLDocument | The document. |
| index | int | The index inside the forms collection. |
Exceptions
| Exception | Description |
|---|---|
DOMException | The exception is occured if index out of the range. |
create
Creates a new FormEditor based on HTMLFormElement selected from the document by id.
Returns
Return a new instance of the FormEditor class
def create(self, document, id):
...
| Parameter | Type | Description |
|---|---|---|
| document | HTMLDocument | The document. |
| id | str | The identifier. |
Exceptions
| Exception | Description |
|---|---|
DOMException | The exception is occured if there is no element by specified Id or element is not a form type. |
See Also
- module
aspose.html.forms - class
DOMException - class
FormEditor - class
HTMLFormElement