# NumericUpDownValueChangedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/numeric_up_down/struct-numericupdownvaluechangedeventargs/

**struct** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
struct NumericUpDownValueChangedEventArgs
```

Provides data for the `ValueChanged` event of a numeric up-down control.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/numeric_up_down/numeric_up_down_value_changed_event_args.rs#L7)

## Members

- [`new`](#function-new)
- [`old_value`](#function-old_value)
- [`new_value`](#function-new_value)

<a id="function-new"></a>

### new

```rust
fn new<T: ?Sized>(routed_event: Option<&RoutedEvent<T>>, old_value: Option<Decimal>, new_value: Option<Decimal>) -> Self
```

Creates args for a routed event and a change of the value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/numeric_up_down/numeric_up_down_value_changed_event_args.rs#L17)

<a id="function-old_value"></a>

### old_value

```rust
fn old_value(self: &Self) -> Option<Decimal>
```

The value before the change.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/numeric_up_down/numeric_up_down_value_changed_event_args.rs#L29)

<a id="function-new_value"></a>

### new_value

```rust
fn new_value(self: &Self) -> Option<Decimal>
```

The value after the change.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/numeric_up_down/numeric_up_down_value_changed_event_args.rs#L35)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
