Skip to main content
Version: 4.1

UpDownControlExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the UpDownBase class.

public class UpDownControlExtensions

Methods

Static member BorderStyle<TUpDownControl>(upDownControl, borderStyle)

Sets the BorderStyle property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.
borderStyleBorderStyleThe border style to apply to the control.

Returns: TUpDownControl. The modified UpDown control.

Static member Editable<TUpDownControl>(upDownControl, editable)

Sets the Editable property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.
editableBooleanIndicates whether the control should be editable.

Returns: TUpDownControl. The modified UpDown control.

Static member HideUpDownButtons<TUpDownControl>(upDownControl, hideUpDownButtons)

Sets the HideUpDownButtons property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.
hideUpDownButtonsBooleanIndicates whether the up-down buttons should be hidden.

Returns: TUpDownControl. The modified UpDown control with up-down buttons hidden.

Static member InterceptArrowKeys<TUpDownControl>(upDownControl, interceptArrowKeys)

Sets the InterceptArrowKeys property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.
interceptArrowKeysBooleanIndicates whether arrow key events should be intercepted.

Returns: TUpDownControl. The modified UpDown control.

Static member Invalid<TUpDownControl>(upDownControl, invalid)

Sets the Invalid property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.
invalidBooleanIndicates whether the current value is invalid.

Returns: TUpDownControl. The modified UpDown control.

Static member InvalidMessage<TUpDownControl>(upDownControl, invalidMessage)

Sets the InvalidMessage property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.
invalidMessageStringThe message to display when the input is invalid.

Returns: TUpDownControl. The modified UpDown control.

Static member OnSelectedItemChanged<TDomainUpDownControl>(domainUpDownControl, action)

Attaches an event handler to the SelectedItemChanged event of a DomainUpDown control.

ParameterTypeDescription
TDomainUpDownControlThe type of the domain up-down control.
domainUpDownControlTDomainUpDownControlThe domain up-down control to which the event handler is to be attached.
actionAction<TDomainUpDownControl>The action to perform when the SelectedItemChanged event is triggered.

Returns: TDomainUpDownControl. The domain up-down control with the event handler attached.

Static member OnSortedItemChanged<TDomainUpDownControl>(domainUpDownControl, action)

Attaches an event handler to the SortedChanged event of a DomainUpDown control.

ParameterTypeDescription
TDomainUpDownControlThe type of the domain up-down control.
domainUpDownControlTDomainUpDownControlThe domain up-down control to which the event handler is to be attached.
actionAction<TDomainUpDownControl>The action to perform when the SortedChanged event is triggered.

Returns: TDomainUpDownControl. The domain up-down control with the event handler attached.

Static member SelectOnEnter<TUpDownControl>(upDownControl, selectOnEnter)

Sets the SelectOnEnter property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.
selectOnEnterBooleanIndicates whether the text should be selected when the control gains focus.

Returns: TUpDownControl. The modified UpDown control.

Static member TextAlign<TUpDownControl>(upDownControl, textAlign)

Sets the TextAlign property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.
textAlignHorizontalAlignmentThe horizontal alignment of the text within the control.

Returns: TUpDownControl. The modified UpDown control.

Static member UpDownAlign<TUpDownControl>(upDownControl, upDownAlign)

Sets the UpDownAlign property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.
upDownAlignHorizontalAlignmentThe horizontal alignment of the up-down buttons within the control.

Returns: TUpDownControl. The modified UpDown control.

Static member Wrap<TUpDownControl>(upDownControl)

Enables the Wrap property of the specified UpDown control.

ParameterTypeDescription
TUpDownControl
upDownControlTUpDownControlThe UpDown control to modify.

Returns: TUpDownControl. The modified UpDown control with wrapping enabled.