The Form type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| Form |
Initialises a new instance of the Form class, with no HtmlElements.
| |
| Form(Form) |
Initialises a new instance of the Form class, which is an exact copy of the specified Form.
| |
| Form(IntPtr, Boolean) |
For internal use only. Of no interest to the user.
|
Methods
| Name | Description | |
|---|---|---|
| AddElement |
Appends the specified HtmlElement to the end of this Form.
| |
| Clone |
Initialises a new instance of the HtmlElement class, which is a copy of the specified HtmlElement.
(Inherited from HtmlElement.) | |
| Dispose | Releases all resources used by the Form (Overrides HtmlElement Dispose .) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetAttribute |
Gets the value of the specified attribute,
or an empty string if the attribute is not contained within this HTML element.
(Inherited from HtmlElement.) | |
| getCPtr |
For internal use only. Of no interest to the user.
| |
| GetFileElement(String) |
Gets the FileElement with the specified name.
| |
| GetFileElement(String, String) | ||
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetHtmlElement(Int32) |
Gets the nth HtmlElement object in this Form.
| |
| GetHtmlElement(String) |
Gets the HtmlElement with the specified name.
| |
| GetHtmlElement(String, String) | ||
| GetInputElement(String) |
Gets the InputElement with the specified name.
| |
| GetInputElement(String, String) | ||
| GetOptionElement(String) |
Gets the OptionElement with the specified name.
| |
| GetOptionElement(String, String) | ||
| GetSelectElement(String) |
Gets the SelectElement with the specified name.
| |
| GetSelectElement(String, String) | ||
| GetTextAreaElement(String) |
Gets the TextAreaElement with the specified name.
| |
| GetTextAreaElement(String, String) | ||
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| HasAttribute |
Determines whether this HTML element contains the specified attribute.
(Inherited from HtmlElement.) | |
| InsertElement |
Inserts the specified HtmlElement into the form.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| RemoveAttribute |
Removes an attribute from this HTML element. This method has no effect if the attribute does not exist.
(Inherited from HtmlElement.) | |
| RemoveElement(Int32) |
Removes the nth HtmlElement from this Form.
| |
| RemoveElement(String) |
Removes the HtmlElement with the specified name from this Form.
| |
| RemoveElement(String, String) | ||
| SetAttribute(String) |
Sets the value of the specified attribute to an empty string.
(Inherited from HtmlElement.) | |
| SetAttribute(String, String) |
Sets the value of the specified attribute. The attribute will be added if it does not already exist.
(Inherited from HtmlElement.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| Action |
Gets the location to send the form data when the Form is submitted.
| |
| AfterEndTagPosition |
Gets the character offset into the HTML document at which the last character
(not including < > tag characters) in this HTML element appears.
(Inherited from HtmlElement.) | |
| AfterStartTagPosition |
Gets the character offset into the HTML document at which the 1st character
(not including < > tag characters) in this HTML element appears.
(Inherited from HtmlElement.) | |
| Attributes |
Gets all the attributes contained in this HtmlElement as an IDictionary
of attribute names to values.
(Inherited from HtmlElement.) | |
| CharEncoding |
Gets or sets the character encoding to use when interpreting this Form.
(Overrides HtmlElement CharEncoding.) | |
| Content |
Gets or sets the content of this HTML element. This includes everything between the HTML tags, but
excludes the tags themselves and any attributes.
(Inherited from HtmlElement.) | |
| ContentPosition |
Gets the character offset into the HTML document at which this HTML element's content starts.
(Inherited from HtmlElement.) | |
| Disabled |
Gets or sets a value that indicates whether this HTML element has been disabled.
(Inherited from HtmlElement.) | |
| ElementCount |
Gets the number of HtmlElement objects in this Form.
| |
| EncType |
Gets or sets the encoding type for this Form, e.g. "application/x-www-form-urlencoded", "multipart/form-data".
| |
| ExtractWasSuccessful |
Gets a value that indicates whether this Form was
successfully extracted from a Response using the ExtractForm(Int32)
method.
| |
| Id |
Gets or sets the value of the "id" attribute for this HTML element.
(Inherited from HtmlElement.) | |
| Index |
Gets the zero-based index of this Form within the Response from which it was extracted.
| |
| IsMultipartForm |
Gets a value that indicates whether this is a multi-part form.
| |
| IsSuccessfulControl |
Gets a value that indicates whether this HTML element currently represents a successful control.
A successful control is one that is valid for submission, i.e. one that will be sent to the
web server when the form is submitted.
(Inherited from HtmlElement.) | |
| Method |
Gets the HTTP method that should be used to send this Form to the web server, e.g. GET, POST.
| |
| MultipartFormBoundary |
Gets or sets the string that will be used as the boundary between input elements (including the -- prefix), when encoding this Form as multipart/form-data.
| |
| Name |
Gets or sets the value of the "name" attribute for this HTML element.
(Inherited from HtmlElement.) | |
| Tag |
Gets the tag name of this HTML element.
(Inherited from HtmlElement.) | |
| Value |
Gets or sets the value of the "value" attribute for this HTML element.
(Inherited from HtmlElement.) |
See Also