NumericUpDownExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the NumericUpDown class.
- C#
- VB.NET
public class NumericUpDownExtensions
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 | TNumericUpDownControl | The numeric up-down control to modify. |
| decimalPlaces | Int32 | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| isHexadecimal | Boolean | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| increment | Decimal | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| maximum | Decimal | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| minimum | Decimal | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| nullableValue | Nullable<Decimal> | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| action | Action<TNumericUpDownControl> | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| prefix | String | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| postfix | String | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| thousandsSeparator | Boolean | 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 | TNumericUpDownControl | The numeric up-down control to modify. |
| value | Decimal | The value to set. |
Returns: TNumericUpDownControl. The modified numeric up-down control.