InputElement Class
Contents
[
Hide
]InputElement class
The InputElement represents a wrapper that is associated with the HTMLInputElement.
public class InputElement : FormElement<HTMLInputElement>
Properties
Name | Description |
---|---|
ElementType { get; } | Gets the type of the element. |
HtmlElement { get; } | |
override Id { get; set; } | Represents the Id attribute of the input element. |
List { get; } | Represents a list of options |
override Name { get; set; } | Represent the name attribute of the input element. |
Type { get; set; } | Type of the form control. |
override Value { get; set; } | Represents the string value of the input element that is directly mapped to the ‘value’ attribute. |
Methods
Name | Description |
---|---|
AddFile(string) | This method adds files to the Files collection which will be sent during the next web request. |
GetCheckboxValue() | Returns the checkedness state for the input element with the Checkbox type . |
GetColorValue() | 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” |
GetDateTimeLocalValue() | 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” |
GetDateValue() | 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” |
GetEmailValue() | 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” |
GetMonthValue() | 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” |
GetNumberValue() | 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” |
GetPasswordValue() | 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” |
GetRadioValue() | Returns the checkedness state for the input element with the radio type. |
GetTimeValue() | 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” |
GetUrlValue() | 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” |
GetWeekValue() | 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” |
SetCheckboxValue(bool) | Sets the checkedness state for the input elemen with the Checkbox type. |
SetColorValue(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” |
SetDateTimeLocalValue(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” |
SetDateValue(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” |
SetEmailValue(string) | 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” |
SetMonthValue(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” |
SetNumberValue(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” |
SetPasswordValue(string) | 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” |
SetRadioValue(bool) | Sets the checkedness state for the input element with the radio type. |
SetTimeValue(TimeSpan) | This method is used to set TimeSpan object as a value for input element. This method is valid if only the type of the input element is “time” |
SetUrlValue(Url) | 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” |
SetWeekValue(string) | 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” |
See Also
- class FormElement<T>
- class HTMLInputElement
- namespace Aspose.Html.Forms
- assembly Aspose.HTML