FormEditor class

FormEditor class

This class represents the editor over the HTMLFormElement that creates a easier way for .net developers to edit the html forms.

The FormEditor type exposes the following members:

Properties

PropertyDescription
formThe original HTMLFormElement that is associated with current instance of FormEditor.
countThe number of form controls in the form.
methodHTTP method [IETF RFC 2616] used to submit form. See the method attribute definition in HTML 4.01.
actionServer-side form handler. See the action attribute definition in HTML 4.01.

Returns the element by specified index.

Indexer

NameDescription
[index]The index of the element

Methods

MethodDescription
createCreates a new FormEditor based on HTMLFormElement.
createCreates a new FormEditor based on HTMLFormElement selected from the HTMLDocument.forms collection by index.
createCreates a new FormEditor based on HTMLFormElement selected from the document by id.
add_inputCreates a new InputElement and adds it to the end of the form.
add_inputCreates a new InputElement and adds it to the end of the form.
create_newCreates a new HTMLFormElement and associated it with FormEditor. HTMLFormElement is created in the detached from the document state; in order to attach it to the document, please select proper location and use Node.append_child method.

See Also