# AutoSuggestBoxTextChangedEventArgs

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

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

```rust
struct AutoSuggestBoxTextChangedEventArgs
```

The arguments of the `TextChanged` event of an [`AutoSuggestBox`](/docs/0.5.0/api/ferroui-controls/struct-autosuggestbox/) (WinUI's
`AutoSuggestBoxTextChangedEventArgs`): the reason, and whether the text is still the one of the
change. The arguments do not keep the box alive.

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

## Members

- [`reason`](#function-reason)
- [`set_reason`](#function-set_reason)
- [`check_current`](#function-check_current)

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

### reason

```rust
fn reason(self: &Self) -> AutoSuggestionBoxTextChangeReason
```

Why the text changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_suggest_box.rs#L74)

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

### set_reason

```rust
fn set_reason(self: &Self, value: AutoSuggestionBoxTextChangeReason)
```

Sets why the text changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_suggest_box.rs#L79)

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

### check_current

```rust
fn check_current(self: &Self) -> bool
```

Whether the text of the box has not changed since the change of these arguments (WinUI's
`CheckCurrent`): `false` as soon as a newer change happens, before its event is raised.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_suggest_box.rs#L85)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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