NumericUpDownExtensions

Wisej.Web.Markup.NumericUpDownExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.0.0.0)

Adds fluent markup extension methods to the NumericUpDown class.

public class NumericUpDownExtensions

Methods

DecimalPlaces<TNumericUpDownControl>(numericUpDownControl, decimalPlaces)

Sets the number of decimal places for the specified NumericUpDown control.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

decimalPlaces

The number of decimal places.

Returns: TNumericUpDownControl. The modified numeric up-down control.

Hexadecimal<TNumericUpDownControl>(numericUpDownControl, isHexadecimal)

Determines whether the specified NumericUpDown control should display values in hexadecimal.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

isHexadecimal

Indicates whether to display values in hexadecimal.

Returns: TNumericUpDownControl. The modified numeric up-down control.

Increment<TNumericUpDownControl>(numericUpDownControl, increment)

Sets the increment for the specified NumericUpDown control.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

increment

The increment value.

Returns: TNumericUpDownControl. The modified numeric up-down control.

Maximum<TNumericUpDownControl>(numericUpDownControl, maximum)

Sets the maximum value for the specified NumericUpDown control.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

maximum

The maximum value.

Returns: TNumericUpDownControl. The modified numeric up-down control.

Minimum<TNumericUpDownControl>(numericUpDownControl, minimum)

Sets the minimum value for the specified NumericUpDown control.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

minimum

The minimum value.

Returns: TNumericUpDownControl. The modified numeric up-down control.

NullableValue<TNumericUpDownControl>(numericUpDownControl, nullableValue)

Sets a nullable value for the specified NumericUpDown control.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

nullableValue

The nullable value to set; can be null.

Returns: TNumericUpDownControl. The modified numeric up-down control.

OnValueChanged<TNumericUpDownControl>(numericUpDownControl, action)

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

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

action

The action to perform when the value changes.

Returns: TNumericUpDownControl. The numeric up-down control with the event handler attached.

Prefix<TNumericUpDownControl>(numericUpDownControl, prefix)

Sets a prefix for the display value of the specified NumericUpDown control.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

prefix

The prefix to display before the numeric value.

Returns: TNumericUpDownControl. The modified numeric up-down control.

Suffix<TNumericUpDownControl>(numericUpDownControl, postfix)

Sets a suffix for the display value of the specified NumericUpDown control.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

postfix

The suffix to display after the numeric value.

Returns: TNumericUpDownControl. The modified numeric up-down control.

ThousandsSeparator<TNumericUpDownControl>(numericUpDownControl, thousandsSeparator)

Configures whether the specified NumericUpDown control should display a thousands separator.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

thousandsSeparator

Indicates whether to use a thousands separator.

Returns: TNumericUpDownControl. The modified numeric up-down control.

Value<TNumericUpDownControl>(numericUpDownControl, value)

Sets the current value for the specified NumericUpDown control.

Parameter
Type
Description

TNumericUpDownControl

The type of the numeric up-down control.

numericUpDownControl

The numeric up-down control to modify.

value

The value to set.

Returns: TNumericUpDownControl. The modified numeric up-down control.

Last updated

Was this helpful?