InputElement class
InputElement class
The InputElement represents a wrapper that is associated with the HTMLInputElement.
Inheritance: InputElement →
FormElement
The InputElement type exposes the following members:
Properties
| Property | Description |
|---|---|
| element_type | Gets the type of the element. |
| name | Represent the name attribute of the input element. |
| id | Represents the Id attribute of the input element. |
| value | Represents the string value of the input element that is directly mapped to the ‘value’ attribute. |
| list | Represents a list of options |
| type | Type of the form control. |
| html_element |
Methods
| Method | Description |
|---|---|
| set_url_value | This method is used to set Url object as a value for input element. This method is valid if only the type of the input element is “url” |
| get_url_value | This method is used to get the value as Url object. This method is valid if only only type of the input element is “url” |
| set_email_value | This method is used to set email string as a value for input element. This method is valid if only the type of the input element is “email” |
| get_email_value | This method is used to get the value as an email string object. This method is valid if only only type of the input element is “email” |
| set_password_value | This method is used to set password string as a value for input element. This method is valid if only the type of the input element is “password” |
| get_password_value | This method is used to get the value as a password string object. This method is valid if only only type of the input element is “password” |
| set_date_value | This method is used to set DateTime object as a value for input element. This method is valid if only the type of the input element is “date” |
| get_date_value | This method is used to get the value as a DateTime object. This method is valid if only only type of the input element is “date” |
| set_month_value | This method is used to set DateTime object as a value for input element. This method is valid if only the type of the input element is “month” |
| get_month_value | This method is used to get the value as a DateTime object. This method is valid if only only type of the input element is “month” |
| set_week_value | This method is used to set ‘week’ string as a value for input element. This method is valid if only the type of the input element is “week” |
| get_week_value | This method is used to get the value as a week string. This method is valid if only only type of the input element is “week” |
| set_time_value | |
| get_time_value | This method is used to get the value as a TimeSpan object. This method is valid if only only type of the input element is “time” |
| set_date_time_local_value | This method is used to set DateTime object as a value for input element. This method is valid if only the type of the input element is “datetime-local” |
| get_date_time_local_value | This method is used to get the value as a DateTime object object. This method is valid if only only type of the input element is “datetime-local” |
| set_number_value | This method is used to set number as a value for input element. This method is valid if only the type of the input element is “number” |
| get_number_value | This method is used to get the value as a number. This method is valid if only only type of the input element is “number” |
| set_color_value | This method is used to set color as a value for input element. This method is valid if only the type of the input element is “color” |
| get_color_value | This method is used to get the value as a color. This method is valid if only only type of the input element is “color” |
| set_checkbox_value | Sets the checkedness state for the input elemen with the Checkbox type. |
| get_checkbox_value | Returns the checkedness state for the input element with the Checkbox type . |
| set_radio_value | Sets the checkedness state for the input element with the radio type. |
| get_radio_value | Returns the checkedness state for the input element with the radio type. |
| add_file | This method adds files to the HTMLInputElement.files collection which will be sent during the next web request. |
See Also
- module
aspose.html.forms - class
FormElement - class
InputElement - class
Url