# RangeGravity

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

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

```rust
enum RangeGravity
```

Character-format affinity at a collapsed range boundary, with the native
Microsoft.UI.Text numeric values. UIBehavior follows the preceding run except
at the start of a paragraph. Backward can use the preceding paragraph's last
character; Forward and collapsed Inward use the following run.

The characterized MSFTEDIT setter canonicalizes Outward to UIBehavior. All
five constants remain available; the getter reports the accepted mode. This
does not change FerroUI's separate live-pointer rebasing policy.

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

## Members

- [`UIBehavior`](#variant-uibehavior)
- [`Backward`](#variant-backward)
- [`Forward`](#variant-forward)
- [`Inward`](#variant-inward)
- [`Outward`](#variant-outward)

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

### UIBehavior

```rust
UIBehavior = 0
```



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

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

### Backward

```rust
Backward = 1
```



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

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

### Forward

```rust
Forward = 2
```



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

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

### Inward

```rust
Inward = 3
```



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

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

### Outward

```rust
Outward = 4
```



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

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