# TextEndOfParagraph

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

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

```rust
struct TextEndOfParagraph
```

A text run that supports end of paragraph.

It is an end of line too: `TextRun::as_text_end_of_line` returns its base.

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

## Members

- [`new`](#function-new)
- [`with_length`](#function-with_length)

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

### new

```rust
fn new() -> Self
```

An end of paragraph of the default text source length (1).

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

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

### with_length

```rust
fn with_length(text_source_length: i32) -> Self
```

An end of paragraph covering `text_source_length` text source positions.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Default`
- [`TextRun`](/docs/0.5.0/api/ferroui-base/media/text_formatting/trait-textrun/)

## Availability

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