# NumericUpDownExtensions

Namespace: **Wisej.Web.Markup**

Assembly: **Wisej.Framework** (4.0.0.0)

Adds [fluent markup](https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/markup/markup) extension methods to the [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) class.

{% tabs %}
{% tab title="C#" %}

```csharp
public class NumericUpDownExtensions
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class NumericUpDownExtensions
```

{% endtab %}
{% endtabs %}

## Methods

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) DecimalPlaces\<TNumericUpDownControl>(numericUpDownControl, decimalPlaces)

Sets the number of decimal places for the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control.

| Parameter                 | Type                                                                                                                     | Description                              |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control. |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.   |
| **decimalPlaces**         | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                              | The number of decimal places.            |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Hexadecimal\<TNumericUpDownControl>(numericUpDownControl, isHexadecimal)

Determines whether the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control should display values in hexadecimal.

| Parameter                 | Type                                                                                                                     | Description                                         |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control.            |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.              |
| **isHexadecimal**         | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                                          | Indicates whether to display values in hexadecimal. |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Increment\<TNumericUpDownControl>(numericUpDownControl, increment)

Sets the increment for the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control.

| Parameter                 | Type                                                                                                                     | Description                              |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control. |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.   |
| **increment**             | [Decimal](https://docs.microsoft.com/dotnet/api/system.decimal)                                                          | The increment value.                     |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Maximum\<TNumericUpDownControl>(numericUpDownControl, maximum)

Sets the maximum value for the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control.

| Parameter                 | Type                                                                                                                     | Description                              |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control. |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.   |
| **maximum**               | [Decimal](https://docs.microsoft.com/dotnet/api/system.decimal)                                                          | The maximum value.                       |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Minimum\<TNumericUpDownControl>(numericUpDownControl, minimum)

Sets the minimum value for the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control.

| Parameter                 | Type                                                                                                                     | Description                              |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control. |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.   |
| **minimum**               | [Decimal](https://docs.microsoft.com/dotnet/api/system.decimal)                                                          | The minimum value.                       |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) NullableValue\<TNumericUpDownControl>(numericUpDownControl, nullableValue)

Sets a nullable value for the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control.

| Parameter                 | Type                                                                                                                     | Description                              |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control. |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.   |
| **nullableValue**         | [Nullable\<Decimal>](https://docs.microsoft.com/dotnet/api/system.nullable-1)                                            | The nullable value to set; can be null.  |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) OnValueChanged\<TNumericUpDownControl>(numericUpDownControl, action)

Attaches a value-changed event handler to the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control.

| Parameter                 | Type                                                                                                                     | Description                                   |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control.      |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.        |
| **action**                | [Action\<TNumericUpDownControl>](https://docs.microsoft.com/dotnet/api/system.action-1)                                  | The action to perform when the value changes. |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The numeric up-down control with the event handler attached.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Prefix\<TNumericUpDownControl>(numericUpDownControl, prefix)

Sets a prefix for the display value of the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control.

| Parameter                 | Type                                                                                                                     | Description                                     |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control.        |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.          |
| **prefix**                | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                            | The prefix to display before the numeric value. |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Suffix\<TNumericUpDownControl>(numericUpDownControl, postfix)

Sets a suffix for the display value of the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control.

| Parameter                 | Type                                                                                                                     | Description                                    |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control.       |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.         |
| **postfix**               | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                            | The suffix to display after the numeric value. |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) ThousandsSeparator\<TNumericUpDownControl>(numericUpDownControl, thousandsSeparator)

Configures whether the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control should display a thousands separator.

| Parameter                 | Type                                                                                                                     | Description                                     |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control.        |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.          |
| **thousandsSeparator**    | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                                          | Indicates whether to use a thousands separator. |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) Value\<TNumericUpDownControl>(numericUpDownControl, value)

Sets the current value for the specified [NumericUpDown](https://docs.wisej.com/api/wisej.web/editors/wisej.web.numericupdown) control.

| Parameter                 | Type                                                                                                                     | Description                              |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
| **TNumericUpDownControl** |                                                                                                                          | The type of the numeric up-down control. |
| **numericUpDownControl**  | [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions) | The numeric up-down control to modify.   |
| **value**                 | [Decimal](https://docs.microsoft.com/dotnet/api/system.decimal)                                                          | The value to set.                        |

**Returns:** [TNumericUpDownControl](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.numericupdownextensions). The modified numeric up-down control.
