# TextCollapsingProperties

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

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

```rust
trait TextCollapsingProperties: 'static
```

Properties of text collapsing.

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

## Members

- [`width`](#function-width)
- [`symbol`](#function-symbol)
- [`flow_direction`](#function-flow_direction)
- [`collapse`](#function-collapse)

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

### width

```rust
fn width(self: &Self) -> f64
```

Gets the width in which the collapsible range is constrained to.

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

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

### symbol

```rust
fn symbol(self: &Self) -> &Rc<dyn TextRun>
```

Gets the text run that is used as collapsing symbol.

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

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

### flow_direction

```rust
fn flow_direction(self: &Self) -> FlowDirection
```

Gets the flow direction that is used for collapsing.

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

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

### collapse

```rust
fn collapse(self: &Self, text_line: &dyn TextLine) -> Option<Vec<Rc<dyn TextRun>>>
```

Collapses given text line. Returns the collapsed runs, or `None` when
the line does not have to be collapsed.

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

## Trait implementations

- [`TextCollapsingProperties`](/docs/0.5.0/api/ferroui-base/media/text_formatting/trait-textcollapsingproperties/)

## Availability

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