# Paragraph

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/documents/struct-paragraph/

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

```rust
struct Paragraph
```

A paragraph of structured inline content, including styled spans and embedded controls.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`tab_stops_property`](#function-tab_stops_property)
- [`default_tab_stop_property`](#function-default_tab_stop_property)
- [`text_indent_property`](#function-text_indent_property)
- [`line_spacing_rule_property`](#function-line_spacing_rule_property)
- [`line_spacing_property`](#function-line_spacing_property)
- [`left_indent_property`](#function-left_indent_property)
- [`right_indent_property`](#function-right_indent_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_text`](#function-with_text)
- [`inlines`](#function-inlines)
- [`add_child`](#function-add_child)
- [`add_child_text`](#function-add_child_text)
- [`add_child_control`](#function-add_child_control)
- [`tab_stops`](#function-tab_stops)
- [`set_tab_stops`](#function-set_tab_stops)
- [`default_tab_stop`](#function-default_tab_stop)
- [`set_default_tab_stop`](#function-set_default_tab_stop)
- [`text_indent`](#function-text_indent)
- [`set_text_indent`](#function-set_text_indent)
- [`line_spacing_rule`](#function-line_spacing_rule)
- [`set_line_spacing_rule`](#function-set_line_spacing_rule)
- [`line_spacing`](#function-line_spacing)
- [`set_line_spacing`](#function-set_line_spacing)
- [`left_indent`](#function-left_indent)
- [`set_left_indent`](#function-set_left_indent)
- [`right_indent`](#function-right_indent)
- [`set_right_indent`](#function-set_right_indent)
- [`as_add_child_of_inline`](#function-as_add_child_of_inline)
- [`as_add_child_of_control`](#function-as_add_child_of_control)
- [`as_add_child_of_string`](#function-as_add_child_of_string)

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

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<Paragraph>
```

Returns a strong reference to this object.

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

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

### tab_stops_property

```rust
fn tab_stops_property() -> &'static StyledProperty<TextTabStops>
```



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

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

### default_tab_stop_property

```rust
fn default_tab_stop_property() -> &'static StyledProperty<f64>
```



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

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

### text_indent_property

```rust
fn text_indent_property() -> &'static StyledProperty<f64>
```



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

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

### line_spacing_rule_property

```rust
fn line_spacing_rule_property() -> &'static StyledProperty<LineSpacingRule>
```



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

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

### line_spacing_property

```rust
fn line_spacing_property() -> &'static StyledProperty<f64>
```



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

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

### left_indent_property

```rust
fn left_indent_property() -> &'static StyledProperty<f64>
```



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

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

### right_indent_property

```rust
fn right_indent_property() -> &'static StyledProperty<f64>
```



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

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

### construct

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



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

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

### new

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



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

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

### with_text

```rust
fn with_text(text: &str) -> Ref<Self>
```



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

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

### inlines

```rust
fn inlines(self: &Self) -> InlineCollection
```



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

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

### add_child

```rust
fn add_child(self: &Self, child: impl IntoRef<Inline>)
```



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

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

### add_child_text

```rust
fn add_child_text(self: &Self, text: &str)
```



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

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

### add_child_control

```rust
fn add_child_control(self: &Self, child: impl IntoRef<Control>)
```



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

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

### tab_stops

```rust
fn tab_stops(self: &Self) -> TextTabStops
```

Immutable explicit stops, in layout units from the paragraph's leading page edge.

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

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

### set_tab_stops

```rust
fn set_tab_stops(self: &Self, value: TextTabStops)
```



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

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

### default_tab_stop

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

Spacing of implicit stops after the explicit configuration, in layout units.

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

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

### set_default_tab_stop

```rust
fn set_default_tab_stop(self: &Self, value: f64)
```

Assigns an explicit interval in DIPs. When unassigned, the layout host
supplies the interval: four paragraph ems in RichTextBlock, or the editable
document's default (initially 48 DIPs / 36 points) in RichEditBox.

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

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

### text_indent

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



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

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

### set_text_indent

```rust
fn set_text_indent(self: &Self, value: f64)
```



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

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

### line_spacing_rule

```rust
fn line_spacing_rule(self: &Self) -> LineSpacingRule
```



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

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

### set_line_spacing_rule

```rust
fn set_line_spacing_rule(self: &Self, value: LineSpacingRule)
```



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

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

### line_spacing

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



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

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

### set_line_spacing

```rust
fn set_line_spacing(self: &Self, value: f64)
```



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

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

### left_indent

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



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

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

### set_left_indent

```rust
fn set_left_indent(self: &Self, value: f64)
```



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

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

### right_indent

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



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

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

### set_right_indent

```rust
fn set_right_indent(self: &Self, value: f64)
```



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

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

### as_add_child_of_inline

```rust
fn as_add_child_of_inline(this: Ref<Self>) -> Rc<dyn IAddChild<Ref<Inline>>>
```



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

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

### as_add_child_of_control

```rust
fn as_add_child_of_control(this: Ref<Self>) -> Rc<dyn IAddChild<Ref<Control>>>
```



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

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

### as_add_child_of_string

```rust
fn as_add_child_of_string(this: Ref<Self>) -> Rc<dyn IAddChild<String>>
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`BlockImplExt`](/docs/0.5.0/api/ferroui-controls/documents/trait-blockimplext/)
- [`TextElementImplExt`](/docs/0.5.0/api/ferroui-controls/documents/trait-textelementimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<Paragraph>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`TextElementImpl`](/docs/0.5.0/api/ferroui-controls/documents/trait-textelementimpl/)
- [`BlockImpl`](/docs/0.5.0/api/ferroui-controls/documents/trait-blockimpl/)

## Availability

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