TimeUpDownExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the TimeUpDown class.
- C#
- VB.NET
public class TimeUpDownExtensions
Public Class TimeUpDownExtensions
Methods
Maximum<TTimeUpDownControl>(domainUpDownControl, maximum)
Sets the maximum time value for the specified TimeUpDown control.
| Parameter | Type | Description |
|---|---|---|
| TTimeUpDownControl | The type of the time up-down control. | |
| domainUpDownControl | TTimeUpDownControl | The time up-down control to modify. |
| maximum | TimeSpan | The maximum time value to set. |
Returns: TTimeUpDownControl. The time up-down control with the set maximum value.
Minimum<TTimeUpDownControl>(domainUpDownControl, minimum)
Sets the minimum time value for the specified TimeUpDown control.
| Parameter | Type | Description |
|---|---|---|
| TTimeUpDownControl | The type of the time up-down control. | |
| domainUpDownControl | TTimeUpDownControl | The time up-down control to modify. |
| minimum | TimeSpan | The minimum time value to set. |
Returns: TTimeUpDownControl. The time up-down control with the set minimum value.
NullableValue<TTimeUpDownControl>(TimeUpDownControl, nullableValue)
Sets a nullable time value for the specified TimeUpDown control.
| Parameter | Type | Description |
|---|---|---|
| TTimeUpDownControl | The type of the time up-down control. | |
| TimeUpDownControl | TTimeUpDownControl | The time up-down control to modify. |
| nullableValue | Nullable<TimeSpan> | The nullable time value to set; can be null. |
Returns: TTimeUpDownControl. The time up-down control with the set nullable value.
OnValueChanged<TTimeUpDownControl>(TimeUpDownControl, action)
Attaches a value-changed event handler to the specified TimeUpDown control.
| Parameter | Type | Description |
|---|---|---|
| TTimeUpDownControl | The type of the time up-down control. | |
| TimeUpDownControl | TTimeUpDownControl | The time up-down control to modify. |
| action | Action<TTimeUpDownControl> | The action to perform when the value changes. |
Returns: TTimeUpDownControl. The time up-down control with the event handler attached.
Value<TTimeUpDownControl>(domainUpDownControl, value)
Sets the current time value for the specified TimeUpDown control.
| Parameter | Type | Description |
|---|---|---|
| TTimeUpDownControl | The type of the time up-down control. | |
| domainUpDownControl | TTimeUpDownControl | The time up-down control to modify. |
| value | TimeSpan | The time value to set. |
Returns: TTimeUpDownControl. The time up-down control with the set value.