# TextElementProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-textelementprops/

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

```rust
trait TextElementProps: ElementBuilder
```

The properties and routed events of `TextElement`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8687)

## Members

- [`language`](#function-language)
- [`background`](#function-background)
- [`font_family`](#function-font_family)
- [`font_features`](#function-font_features)
- [`font_size`](#function-font_size)
- [`font_style`](#function-font_style)
- [`font_weight`](#function-font_weight)
- [`font_stretch`](#function-font_stretch)
- [`foreground`](#function-foreground)
- [`letter_spacing`](#function-letter_spacing)

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

### language

```rust
fn language<M>(self: Self, value: impl IntoProp<ferroui_base::utilities::Locale, M>) -> Self
```

Sets `TextElement::language_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8689)

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

### background

```rust
fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `TextElement::background_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8694)

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

### font_family

```rust
fn font_family<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontFamily, M>) -> Self
```

Sets `TextElement::font_family_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8699)

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

### font_features

```rust
fn font_features<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::FontFeatureCollection>, M>) -> Self
```

Sets `TextElement::font_features_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8704)

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

### font_size

```rust
fn font_size<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `TextElement::font_size_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8709)

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

### font_style

```rust
fn font_style<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStyle, M>) -> Self
```

Sets `TextElement::font_style_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8714)

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

### font_weight

```rust
fn font_weight<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontWeight, M>) -> Self
```

Sets `TextElement::font_weight_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8719)

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

### font_stretch

```rust
fn font_stretch<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStretch, M>) -> Self
```

Sets `TextElement::font_stretch_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8724)

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

### foreground

```rust
fn foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `TextElement::foreground_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8729)

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

### letter_spacing

```rust
fn letter_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `TextElement::letter_spacing_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8734)

## Trait implementations

- [`TextElementProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-textelementprops/)

## Availability

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