# LineSpacingRule

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/documents/enum-linespacingrule/

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

```rust
enum LineSpacingRule
```

The rich text object model's line-spacing rules. Distances are expressed in
FerroUI layout units; `Multiple` is a multiplier and `Percent` a percentage.
See the pinned Microsoft.UI.Text contract in docs/porting/winui-rich-text.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/line_spacing_rule.rs#L8)

## Members

- [`Undefined`](#variant-undefined)
- [`Single`](#variant-single)
- [`OneAndHalf`](#variant-oneandhalf)
- [`Double`](#variant-double)
- [`AtLeast`](#variant-atleast)
- [`Exactly`](#variant-exactly)
- [`Multiple`](#variant-multiple)
- [`Percent`](#variant-percent)

<a id="variant-undefined"></a>

### Undefined

```rust
Undefined = 0
```

No override: use the block's LineHeight and LineStackingStrategy.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/line_spacing_rule.rs#L11)

<a id="variant-single"></a>

### Single

```rust
Single = 1
```



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

<a id="variant-oneandhalf"></a>

### OneAndHalf

```rust
OneAndHalf = 2
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/line_spacing_rule.rs#L13)

<a id="variant-double"></a>

### Double

```rust
Double = 3
```



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

<a id="variant-atleast"></a>

### AtLeast

```rust
AtLeast = 4
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/line_spacing_rule.rs#L15)

<a id="variant-exactly"></a>

### Exactly

```rust
Exactly = 5
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/line_spacing_rule.rs#L16)

<a id="variant-multiple"></a>

### Multiple

```rust
Multiple = 6
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/line_spacing_rule.rs#L17)

<a id="variant-percent"></a>

### Percent

```rust
Percent = 7
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/line_spacing_rule.rs#L18)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`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/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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