# JustificationProperties

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

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

```rust
trait JustificationProperties
```

Describes how a line is justified.

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

## Members

- [`width`](#function-width)
- [`justify`](#function-justify)

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

### width

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

Gets the width in which the range is justified.

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

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

### justify

```rust
fn justify(self: &Self, text_line: &dyn TextLine)
```

Justifies given text line.

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

## Trait implementations

- [`JustificationProperties`](/docs/0.5.0/api/ferroui-base/media/text_formatting/trait-justificationproperties/)

## Availability

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