
## InputElement class

The InputElement represents a wrapper that is associated with the HTMLInputElement.



**Inheritance:** [`InputElement`](/html/python-net/aspose.html.forms/inputelement) → 
[`FormElement`](/html/python-net/aspose.html.forms/formelement)



The InputElement type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [element_type](/html/python-net/aspose.html.forms/inputelement/element_type) | Gets the type of the element. |
| [name](/html/python-net/aspose.html.forms/inputelement/name) | Represent the name attribute of the input element. |
| [id](/html/python-net/aspose.html.forms/inputelement/id) | Represents the Id attribute of the input element. |
| [value](/html/python-net/aspose.html.forms/inputelement/value) | Represents the string value of the input element that is directly mapped to the 'value' attribute. |
| [list](/html/python-net/aspose.html.forms/inputelement/list) | Represents a list of options |
| [type](/html/python-net/aspose.html.forms/inputelement/type) | Type of the form control. |
| [html_element](/html/python-net/aspose.html.forms/inputelement/html_element) |  |


### Methods
| Method | Description |
| :- | :- |
| [set_url_value](/html/python-net/aspose.html.forms/inputelement/set_url_value/#aspose.html.Url) | This method is used to set [`Url`](/html/python-net/aspose.html/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](/html/python-net/aspose.html.forms/inputelement/get_url_value/#) | This method is used to get the value as [`Url`](/html/python-net/aspose.html/url) object. This method is valid if only only type of the input element is "url" |
| [set_email_value](/html/python-net/aspose.html.forms/inputelement/set_email_value/#str) | 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](/html/python-net/aspose.html.forms/inputelement/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](/html/python-net/aspose.html.forms/inputelement/set_password_value/#str) | 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](/html/python-net/aspose.html.forms/inputelement/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](/html/python-net/aspose.html.forms/inputelement/set_date_value/#DateTime) | 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](/html/python-net/aspose.html.forms/inputelement/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](/html/python-net/aspose.html.forms/inputelement/set_month_value/#DateTime) | 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](/html/python-net/aspose.html.forms/inputelement/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](/html/python-net/aspose.html.forms/inputelement/set_week_value/#str) | 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](/html/python-net/aspose.html.forms/inputelement/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](/html/python-net/aspose.html.forms/inputelement/set_time_value/#TimeSpan) |  |
| [get_time_value](/html/python-net/aspose.html.forms/inputelement/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](/html/python-net/aspose.html.forms/inputelement/set_date_time_local_value/#DateTime) | 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](/html/python-net/aspose.html.forms/inputelement/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](/html/python-net/aspose.html.forms/inputelement/set_number_value/#float) | 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](/html/python-net/aspose.html.forms/inputelement/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](/html/python-net/aspose.html.forms/inputelement/set_color_value/#aspose.pydrawing.Color) | 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](/html/python-net/aspose.html.forms/inputelement/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](/html/python-net/aspose.html.forms/inputelement/set_checkbox_value/#bool) | Sets the checkedness state for the input elemen with the Checkbox type. |
| [get_checkbox_value](/html/python-net/aspose.html.forms/inputelement/get_checkbox_value/#) | Returns the checkedness state for the  input element with the Checkbox type . |
| [set_radio_value](/html/python-net/aspose.html.forms/inputelement/set_radio_value/#bool) | Sets the checkedness state for the input element with the radio type. |
| [get_radio_value](/html/python-net/aspose.html.forms/inputelement/get_radio_value/#) | Returns the checkedness state for the  input element with the radio type. |
| [add_file](/html/python-net/aspose.html.forms/inputelement/add_file/#str) | This method adds files to the [`HTMLInputElement.files`](/html/python-net/aspose.html/htmlinputelement#files) collection which will be sent during the next web request. |



### See Also
* module [`aspose.html.forms`](..)
* class [`FormElement`](/html/python-net/aspose.html.forms/formelement)
* class [`InputElement`](/html/python-net/aspose.html.forms/inputelement)
* class [`Url`](/html/python-net/aspose.html/url)
