Skip to main content
Version: 4.1

NumericUpDownExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the NumericUpDown class.

public class NumericUpDownExtensions

Methods

Static member DecimalPlaces<TNumericUpDownControl>(numericUpDownControl, decimalPlaces)

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

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
decimalPlacesInt32The number of decimal places.

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

Static member Hexadecimal<TNumericUpDownControl>(numericUpDownControl, isHexadecimal)

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

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
isHexadecimalBooleanIndicates whether to display values in hexadecimal.

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

Static member Increment<TNumericUpDownControl>(numericUpDownControl, increment)

Sets the increment for the specified NumericUpDown control.

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
incrementDecimalThe increment value.

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

Static member Maximum<TNumericUpDownControl>(numericUpDownControl, maximum)

Sets the maximum value for the specified NumericUpDown control.

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
maximumDecimalThe maximum value.

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

Static member Minimum<TNumericUpDownControl>(numericUpDownControl, minimum)

Sets the minimum value for the specified NumericUpDown control.

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
minimumDecimalThe minimum value.

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

Static member NullableValue<TNumericUpDownControl>(numericUpDownControl, nullableValue)

Sets a nullable value for the specified NumericUpDown control.

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
nullableValueNullable<Decimal>The nullable value to set; can be null.

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

Static member OnValueChanged<TNumericUpDownControl>(numericUpDownControl, action)

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

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
actionAction<TNumericUpDownControl>The action to perform when the value changes.

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

Static member Prefix<TNumericUpDownControl>(numericUpDownControl, prefix)

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

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
prefixStringThe prefix to display before the numeric value.

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

Static member Suffix<TNumericUpDownControl>(numericUpDownControl, postfix)

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

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
postfixStringThe suffix to display after the numeric value.

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

Static member ThousandsSeparator<TNumericUpDownControl>(numericUpDownControl, thousandsSeparator)

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

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
thousandsSeparatorBooleanIndicates whether to use a thousands separator.

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

Static member Value<TNumericUpDownControl>(numericUpDownControl, value)

Sets the current value for the specified NumericUpDown control.

ParameterTypeDescription
TNumericUpDownControlThe type of the numeric up-down control.
numericUpDownControlTNumericUpDownControlThe numeric up-down control to modify.
valueDecimalThe value to set.

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