# TextSearch

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

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

```rust
struct TextSearch
```

Allows to customize text searching in selecting items controls.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`text_property`](#function-text_property)
- [`text_binding_property`](#function-text_binding_property)
- [`set_text`](#function-set_text)
- [`get_text`](#function-get_text)
- [`set_text_binding`](#function-set_text_binding)
- [`get_text_binding`](#function-get_text_binding)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/text_search.rs#L12)

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

### text_property

```rust
fn text_property() -> &'static AttachedProperty<Option<String>>
```

Defines the `Text` attached property.
This text will be considered during text search in selecting
items controls (such as a combo box). This property is usually
applied to an item container directly.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/text_search.rs#L14)

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

### text_binding_property

```rust
fn text_binding_property() -> &'static AttachedProperty<Option<AssignedBinding>>
```

Defines the `TextBinding` attached property.
The binding will be applied to each item during text search in
selecting items controls (such as a combo box).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/text_search.rs#L14)

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

### set_text

```rust
fn set_text(element: &FerroObject, text: Option<String>)
```

Sets the value of the `Text` attached property to a given element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/text_search.rs#L40)

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

### get_text

```rust
fn get_text(element: &FerroObject) -> Option<String>
```

Gets the value of the `Text` attached property from a given element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/text_search.rs#L45)

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

### set_text_binding

```rust
fn set_text_binding(element: &FerroObject, value: Option<AssignedBinding>)
```

Sets the value of the `TextBinding` attached property to a given
element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/text_search.rs#L51)

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

### get_text_binding

```rust
fn get_text_binding(element: &FerroObject) -> Option<AssignedBinding>
```

Gets the value of the `TextBinding` attached property from a given
element.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/text_search.rs#L57)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)

## Availability

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