# TextParagraphStyle

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/text_formatting/struct-textparagraphstyle/

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

```rust
struct TextParagraphStyle
```

Overrides for one or more complete paragraphs in a [`super::TextLayout`](/docs/0.5.0/api/ferroui-base/media/text_formatting/struct-textlayout/).
Positions in [`TextParagraphStyles`](/docs/0.5.0/api/ferroui-base/media/text_formatting/type_alias-textparagraphstyles/) count UTF-16 code units. A style is
selected at the first character of a paragraph and remains in effect across
its wrapped lines. A zero-length span can style a final empty paragraph.

Unspecified values inherit the layout defaults. Spacing and indentation are
in device-independent units; line height is an absolute height, as in
`super::TextLayoutOptions::line_height`. Invalid non-finite/negative spacing
is treated as zero. Indentation applies only to the first line, measured from
the paragraph's logical start edge. Before/after spacing belongs to the
paragraph even at the beginning/end of the layout.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/text_paragraph_style.rs#L20)

## Members

- [`text_alignment`](#struct_field-text_alignment)
- [`flow_direction`](#struct_field-flow_direction)
- [`line_height`](#struct_field-line_height)
- [`letter_spacing`](#struct_field-letter_spacing)
- [`space_before`](#struct_field-space_before)
- [`space_after`](#struct_field-space_after)
- [`indent`](#struct_field-indent)

<a id="struct_field-text_alignment"></a>

### text_alignment

```rust
text_alignment: Option<crate::media::TextAlignment>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/text_paragraph_style.rs#L21)

<a id="struct_field-flow_direction"></a>

### flow_direction

```rust
flow_direction: Option<crate::media::FlowDirection>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/text_paragraph_style.rs#L22)

<a id="struct_field-line_height"></a>

### line_height

```rust
line_height: Option<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/text_paragraph_style.rs#L23)

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

### letter_spacing

```rust
letter_spacing: Option<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/text_paragraph_style.rs#L24)

<a id="struct_field-space_before"></a>

### space_before

```rust
space_before: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/text_paragraph_style.rs#L25)

<a id="struct_field-space_after"></a>

### space_after

```rust
space_after: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/text_paragraph_style.rs#L26)

<a id="struct_field-indent"></a>

### indent

```rust
indent: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/text_paragraph_style.rs#L27)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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