FormEditor.Create

Create(HTMLFormElement)

Creates a new FormEditor based on HTMLFormElement.

public static FormEditor Create(HTMLFormElement form)
ParameterTypeDescription
formHTMLFormElementThe html form element

Return Value

Return a new instance of the FormEditor class

See Also


Create(HTMLDocument, int)

Creates a new FormEditor based on HTMLFormElement selected from the Forms collection by index.

public static FormEditor Create(HTMLDocument document, int index)
ParameterTypeDescription
documentHTMLDocumentThe document.
indexInt32The index inside the forms collection.

Return Value

Return a new instance of the FormEditor class

Exceptions

exceptioncondition
DOMExceptionThe exception is occured if index out of the range.

See Also


Create(HTMLDocument, string)

Creates a new FormEditor based on HTMLFormElement selected from the document by id.

public static FormEditor Create(HTMLDocument document, string id)
ParameterTypeDescription
documentHTMLDocumentThe document.
idStringThe identifier.

Return Value

Return a new instance of the FormEditor class

Exceptions

exceptioncondition
DOMExceptionThe exception is occured if there is no element by specified Id or element is not a form type.

See Also