# Inline

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

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

```rust
struct Inline
```

`Inline` is the base class for inline text elements.

This class is abstract.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`text_decorations_property`](#function-text_decorations_property)
- [`baseline_alignment_property`](#function-baseline_alignment_property)
- [`construct`](#function-construct)
- [`text_decorations`](#function-text_decorations)
- [`set_text_decorations`](#function-set_text_decorations)
- [`baseline_alignment`](#function-baseline_alignment)
- [`set_baseline_alignment`](#function-set_baseline_alignment)
- [`get_text_decorations`](#function-get_text_decorations)
- [`set_text_decorations_on`](#function-set_text_decorations_on)
- [`create_text_run_properties`](#function-create_text_run_properties)

<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/inline.rs#L25)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### text_decorations_property

```rust
fn text_decorations_property() -> &'static AttachedProperty<Option<TextDecorationCollection>>
```

`AttachedProperty` for the `TextDecorations` property.

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

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

### baseline_alignment_property

```rust
fn baseline_alignment_property() -> &'static StyledProperty<BaselineAlignment>
```

`StyledProperty` for the `BaselineAlignment` property.

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

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

### construct

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

Creates the class data; see `ferroui_base::FerroObject::construct`.

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

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

### text_decorations

```rust
fn text_decorations(self: &Self) -> Option<TextDecorationCollection>
```

The `TextDecorations` property specifies decorations that are added
to the text of an element.

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

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

### set_text_decorations

```rust
fn set_text_decorations(self: &Self, value: Option<TextDecorationCollection>)
```



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

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

### baseline_alignment

```rust
fn baseline_alignment(self: &Self) -> BaselineAlignment
```

Describes how the baseline for a text-based element is positioned on
the vertical axis, relative to the established baseline for text.

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

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

### set_baseline_alignment

```rust
fn set_baseline_alignment(self: &Self, value: BaselineAlignment)
```



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

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

### get_text_decorations

```rust
fn get_text_decorations(control: &Control) -> Option<TextDecorationCollection>
```

Gets the value of the attached `TextDecorations` property on a
control.

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

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

### set_text_decorations_on

```rust
fn set_text_decorations_on(control: &Control, value: Option<TextDecorationCollection>)
```

Sets the value of the attached `TextDecorations` property on a
control.

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

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

### create_text_run_properties

```rust
fn create_text_run_properties(self: &Self) -> Rc<dyn TextRunProperties>
```

Creates the run properties of the text of the inline.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`InlineImplExt`](/docs/0.5.0/api/ferroui-controls/documents/trait-inlineimplext/)
- [`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<Inline>`](/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/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`TextElementImpl`](/docs/0.5.0/api/ferroui-controls/documents/trait-textelementimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`InlineImpl`](/docs/0.5.0/api/ferroui-controls/documents/trait-inlineimpl/)

## Availability

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