# TextRangeUnit

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/rich_text/enum-textrangeunit/

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

```rust
enum TextRangeUnit
```

Implemented TOM units, with their native numeric values. Display lines use the
editor's associated view and otherwise follow the native paragraph fallback.
Range Character and selection MoveBy traverse Unicode scalars without
splitting surrogate pairs. Selection MoveLeft/MoveRight follow grapheme
boundaries, matching their arrow-command contract.
Cluster uses the associated view's shaping output and requires a complete,
untrimmed layout. It never substitutes Unicode grapheme boundaries.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L62)

## Members

- [`Character`](#variant-character)
- [`Word`](#variant-word)
- [`Sentence`](#variant-sentence)
- [`Paragraph`](#variant-paragraph)
- [`Line`](#variant-line)
- [`Story`](#variant-story)
- [`HardParagraph`](#variant-hardparagraph)
- [`Cluster`](#variant-cluster)
- [`Document`](#assoc_const-document)

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

### Character

```rust
Character = 0
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L63)

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

### Word

```rust
Word = 1
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L64)

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

### Sentence

```rust
Sentence = 2
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L65)

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

### Paragraph

```rust
Paragraph = 3
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L66)

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

### Line

```rust
Line = 4
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L67)

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

### Story

```rust
Story = 5
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L68)

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

### HardParagraph

```rust
HardParagraph = 12
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L69)

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

### Cluster

```rust
Cluster = 13
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L70)

<a id="assoc_const-document"></a>

### Document

```rust
const Document: Self
```

Compatibility name for the one story represented by a FerroUI document.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rich_edit_text_document.rs#L75)

## 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`
- `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/).
