Class InputElement
内容
[
隐藏
]InputElement class
InputElement 表示与 HTMLInputElement 关联的包装器。
public class InputElement : FormElement<HTMLInputElement>
特性
| 姓名 | 描述 |
|---|---|
| ElementType { get; } | 获取元素的类型。 |
| HtmlElement { get; } | |
| override Id { get; set; } | 表示输入元素的Id属性。 |
| List { get; } | 表示选项列表 |
| override Name { get; set; } | 表示输入元素的name属性。 |
| Type { get; set; } | 表单控件的类型。 |
| override Value { get; set; } | 表示直接映射到’value’属性的输入元素的字符串值。 |
方法
| 姓名 | 描述 |
|---|---|
| AddFile(string) | 此方法将文件添加到Files将在下一次 Web 请求期间发送的集合。 |
| GetCheckboxValue() | 返回 Checkbox 类型的输入元素的选中状态。 |
| GetColorValue() | 此方法用于获取作为颜色的值。此方法仅在输入元素的类型为“color” 时有效 |
| GetDateTimeLocalValue() | 此方法用于获取值作为DateTime对象对象。此方法仅在输入元素的类型为“datetime-local” 时才有效 |
| GetDateValue() | 此方法用于获取值作为DateTime目的。此方法仅在输入元素的类型为“date” 时才有效 |
| GetEmailValue() | 此方法用于获取作为电子邮件字符串对象的值。此方法仅在输入元素的类型为“email” 时有效 |
| GetMonthValue() | 此方法用于获取值作为DateTime目的。此方法仅在输入元素的类型为“month” 时有效 |
| GetNumberValue() | 此方法用于获取数字形式的值。此方法仅在输入元素的类型为“number” 时有效 |
| GetPasswordValue() | 此方法用于获取作为密码字符串对象的值。此方法仅在输入元素的类型为“password” 时有效 |
| GetRadioValue() | 返回具有无线电类型的输入元素的检查状态。 |
| GetTimeValue() | 此方法用于获取值作为TimeSpan目的。此方法仅在输入元素的类型为“time” 时才有效 |
| GetUrlValue() | 此方法用于获取值作为Url目的。此方法仅在输入元素的类型为“url” 时有效 |
| GetWeekValue() | 此方法用于获取作为星期字符串的值。此方法仅在输入元素的类型为“week” 时有效 |
| SetCheckboxValue(bool) | 为 Checkbox 类型的输入元素设置选中状态。 |
| SetColorValue(Color) | 此方法用于将颜色设置为输入元素的值。此方法仅在输入元素的类型为“color” 时有效 |
| SetDateTimeLocalValue(DateTime) | 这个方法用来设置DateTime对象作为输入元素的值。此方法仅在输入元素的类型为“datetime-local” 时有效 |
| SetDateValue(DateTime) | 这个方法用来设置DateTime对象作为输入元素的值。此方法仅在输入元素的类型为“date” 时有效 |
| SetEmailValue(string) | 此方法用于将电子邮件字符串设置为输入元素的值。此方法仅在输入元素的类型为“email” 时有效 |
| SetMonthValue(DateTime) | 这个方法用来设置DateTime对象作为输入元素的值。此方法仅在输入元素的类型为“month” 时有效 |
| SetNumberValue(float) | 此方法用于将数字设置为输入元素的值。此方法仅在输入元素的类型为“number” 时有效 |
| SetPasswordValue(string) | 此方法用于将密码字符串设置为输入元素的值。只有输入元素的类型为“password” 时,该方法才有效 |
| SetRadioValue(bool) | 为具有无线电类型的输入元素设置检查状态。 |
| SetTimeValue(TimeSpan) | 这个方法用来设置TimeSpan对象作为输入元素的值。此方法仅在输入元素的类型为“time” 时有效 |
| SetUrlValue(Url) | 这个方法用来设置Url对象作为输入元素的值。此方法仅在输入元素的类型为“url” 时有效 |
| SetWeekValue(string) | 此方法用于将“week”字符串设置为输入元素的值。此方法仅在输入元素的类型为“week” 时有效 |
也可以看看
- class FormElement<T>
- class HTMLInputElement
- 命名空间 Aspose.Html.Forms
- 部件 Aspose.HTML