Skip to main content
Version: 4.1

TimeUpDownExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the TimeUpDown class.

public class TimeUpDownExtensions

Methods

Static member Maximum<TTimeUpDownControl>(domainUpDownControl, maximum)

Sets the maximum time value for the specified TimeUpDown control.

ParameterTypeDescription
TTimeUpDownControlThe type of the time up-down control.
domainUpDownControlTTimeUpDownControlThe time up-down control to modify.
maximumTimeSpanThe maximum time value to set.

Returns: TTimeUpDownControl. The time up-down control with the set maximum value.

Static member Minimum<TTimeUpDownControl>(domainUpDownControl, minimum)

Sets the minimum time value for the specified TimeUpDown control.

ParameterTypeDescription
TTimeUpDownControlThe type of the time up-down control.
domainUpDownControlTTimeUpDownControlThe time up-down control to modify.
minimumTimeSpanThe minimum time value to set.

Returns: TTimeUpDownControl. The time up-down control with the set minimum value.

Static member NullableValue<TTimeUpDownControl>(TimeUpDownControl, nullableValue)

Sets a nullable time value for the specified TimeUpDown control.

ParameterTypeDescription
TTimeUpDownControlThe type of the time up-down control.
TimeUpDownControlTTimeUpDownControlThe time up-down control to modify.
nullableValueNullable<TimeSpan>The nullable time value to set; can be null.

Returns: TTimeUpDownControl. The time up-down control with the set nullable value.

Static member OnValueChanged<TTimeUpDownControl>(TimeUpDownControl, action)

Attaches a value-changed event handler to the specified TimeUpDown control.

ParameterTypeDescription
TTimeUpDownControlThe type of the time up-down control.
TimeUpDownControlTTimeUpDownControlThe time up-down control to modify.
actionAction<TTimeUpDownControl>The action to perform when the value changes.

Returns: TTimeUpDownControl. The time up-down control with the event handler attached.

Static member Value<TTimeUpDownControl>(domainUpDownControl, value)

Sets the current time value for the specified TimeUpDown control.

ParameterTypeDescription
TTimeUpDownControlThe type of the time up-down control.
domainUpDownControlTTimeUpDownControlThe time up-down control to modify.
valueTimeSpanThe time value to set.

Returns: TTimeUpDownControl. The time up-down control with the set value.