InputElement class

InputElement class

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

Inheritance: InputElementFormElement

The InputElement type exposes the following members:

Properties

PropertyDescription
element_typeGets the type of the element.
nameRepresent the name attribute of the input element.
idRepresents the Id attribute of the input element.
valueRepresents the string value of the input element that is directly mapped to the ‘value’ attribute.
listRepresents a list of options
typeType of the form control.
html_element

Methods

MethodDescription
set_url_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueThis 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_valueSets the checkedness state for the input elemen with the Checkbox type.
get_checkbox_valueReturns the checkedness state for the input element with the Checkbox type .
set_radio_valueSets the checkedness state for the input element with the radio type.
get_radio_valueReturns the checkedness state for the input element with the radio type.
add_fileThis method adds files to the HTMLInputElement.files collection which will be sent during the next web request.

See Also