# ContentPresenter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/presenters/struct-contentpresenter/

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

```rust
struct ContentPresenter
```

Presents a single item of data inside a templated control.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L29)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`PSEUDO_CLASSES`](#assoc_const-pseudo_classes)
- [`background_property`](#function-background_property)
- [`background_sizing_property`](#function-background_sizing_property)
- [`border_brush_property`](#function-border_brush_property)
- [`border_thickness_property`](#function-border_thickness_property)
- [`corner_radius_property`](#function-corner_radius_property)
- [`box_shadow_property`](#function-box_shadow_property)
- [`foreground_property`](#function-foreground_property)
- [`font_family_property`](#function-font_family_property)
- [`font_size_property`](#function-font_size_property)
- [`font_style_property`](#function-font_style_property)
- [`font_weight_property`](#function-font_weight_property)
- [`font_stretch_property`](#function-font_stretch_property)
- [`text_alignment_property`](#function-text_alignment_property)
- [`text_wrapping_property`](#function-text_wrapping_property)
- [`text_trimming_property`](#function-text_trimming_property)
- [`line_height_property`](#function-line_height_property)
- [`letter_spacing_property`](#function-letter_spacing_property)
- [`max_lines_property`](#function-max_lines_property)
- [`child_property`](#function-child_property)
- [`content_property`](#function-content_property)
- [`content_template_property`](#function-content_template_property)
- [`horizontal_content_alignment_property`](#function-horizontal_content_alignment_property)
- [`vertical_content_alignment_property`](#function-vertical_content_alignment_property)
- [`padding_property`](#function-padding_property)
- [`recognizes_access_key_property`](#function-recognizes_access_key_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`background`](#function-background)
- [`set_background`](#function-set_background)
- [`background_sizing`](#function-background_sizing)
- [`set_background_sizing`](#function-set_background_sizing)
- [`border_brush`](#function-border_brush)
- [`set_border_brush`](#function-set_border_brush)
- [`border_thickness`](#function-border_thickness)
- [`set_border_thickness`](#function-set_border_thickness)
- [`corner_radius`](#function-corner_radius)
- [`set_corner_radius`](#function-set_corner_radius)
- [`box_shadow`](#function-box_shadow)
- [`set_box_shadow`](#function-set_box_shadow)
- [`foreground`](#function-foreground)
- [`set_foreground`](#function-set_foreground)
- [`font_family`](#function-font_family)
- [`set_font_family`](#function-set_font_family)
- [`font_size`](#function-font_size)
- [`set_font_size`](#function-set_font_size)
- [`font_style`](#function-font_style)
- [`set_font_style`](#function-set_font_style)
- [`font_weight`](#function-font_weight)
- [`set_font_weight`](#function-set_font_weight)
- [`font_stretch`](#function-font_stretch)
- [`set_font_stretch`](#function-set_font_stretch)
- [`text_alignment`](#function-text_alignment)
- [`set_text_alignment`](#function-set_text_alignment)
- [`text_wrapping`](#function-text_wrapping)
- [`set_text_wrapping`](#function-set_text_wrapping)
- [`text_trimming`](#function-text_trimming)
- [`set_text_trimming`](#function-set_text_trimming)
- [`line_height`](#function-line_height)
- [`set_line_height`](#function-set_line_height)
- [`letter_spacing`](#function-letter_spacing)
- [`set_letter_spacing`](#function-set_letter_spacing)
- [`max_lines`](#function-max_lines)
- [`set_max_lines`](#function-set_max_lines)
- [`child`](#function-child)
- [`content`](#function-content)
- [`set_content`](#function-set_content)
- [`content_template`](#function-content_template)
- [`set_content_template`](#function-set_content_template)
- [`horizontal_content_alignment`](#function-horizontal_content_alignment)
- [`set_horizontal_content_alignment`](#function-set_horizontal_content_alignment)
- [`vertical_content_alignment`](#function-vertical_content_alignment)
- [`set_vertical_content_alignment`](#function-set_vertical_content_alignment)
- [`padding`](#function-padding)
- [`set_padding`](#function-set_padding)
- [`recognizes_access_key`](#function-recognizes_access_key)
- [`set_recognizes_access_key`](#function-set_recognizes_access_key)
- [`host`](#function-host)
- [`set_content_with_data_context`](#function-set_content_with_data_context)
- [`update_child`](#function-update_child)
- [`layout_thickness`](#function-layout_thickness)
- [`arrange_override_impl`](#function-arrange_override_impl)

<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/presenters/content_presenter.rs#L43)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L43)

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

### PSEUDO_CLASSES

```rust
const PSEUDO_CLASSES: PseudoClassesAttribute
```

The pseudoclasses set by the class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L112)

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

### background_property

```rust
fn background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `Background` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### background_sizing_property

```rust
fn background_sizing_property() -> &'static StyledProperty<BackgroundSizing>
```

Defines the `BackgroundSizing` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### border_brush_property

```rust
fn border_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `BorderBrush` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### border_thickness_property

```rust
fn border_thickness_property() -> &'static StyledProperty<Thickness>
```

Defines the `BorderThickness` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### corner_radius_property

```rust
fn corner_radius_property() -> &'static StyledProperty<CornerRadius>
```

Defines the `CornerRadius` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### box_shadow_property

```rust
fn box_shadow_property() -> &'static StyledProperty<BoxShadows>
```

Defines the `BoxShadow` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### foreground_property

```rust
fn foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `Foreground` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### font_family_property

```rust
fn font_family_property() -> &'static StyledProperty<FontFamily>
```

Defines the `FontFamily` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### font_size_property

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

Defines the `FontSize` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### font_style_property

```rust
fn font_style_property() -> &'static StyledProperty<FontStyle>
```

Defines the `FontStyle` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### font_weight_property

```rust
fn font_weight_property() -> &'static StyledProperty<FontWeight>
```

Defines the `FontWeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### font_stretch_property

```rust
fn font_stretch_property() -> &'static StyledProperty<FontStretch>
```

Defines the `FontStretch` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### text_alignment_property

```rust
fn text_alignment_property() -> &'static StyledProperty<TextAlignment>
```

Defines the `TextAlignment` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### text_wrapping_property

```rust
fn text_wrapping_property() -> &'static StyledProperty<TextWrapping>
```

Defines the `TextWrapping` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### text_trimming_property

```rust
fn text_trimming_property() -> &'static StyledProperty<Rc<dyn TextTrimming>>
```

Defines the `TextTrimming` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### line_height_property

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

Defines the `LineHeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### letter_spacing_property

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

Defines the `LetterSpacing` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### max_lines_property

```rust
fn max_lines_property() -> &'static StyledProperty<i32>
```

Defines the `MaxLines` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### child_property

```rust
fn child_property() -> &'static DirectProperty<ContentPresenter, Option<Ref<Control>>>
```

Defines the `Child` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### content_property

```rust
fn content_property() -> &'static StyledProperty<Option<BoxedValue>>
```

Defines the `Content` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### content_template_property

```rust
fn content_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
```

Defines the `ContentTemplate` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### horizontal_content_alignment_property

```rust
fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
```

Defines the `HorizontalContentAlignment` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### vertical_content_alignment_property

```rust
fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
```

Defines the `VerticalContentAlignment` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### padding_property

```rust
fn padding_property() -> &'static StyledProperty<Thickness>
```

Defines the `Padding` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

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

### recognizes_access_key_property

```rust
fn recognizes_access_key_property() -> &'static StyledProperty<bool>
```

Defines the `RecognizesAccessKey` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L115)

<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/presenters/content_presenter.rs#L313)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L327)

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

### background

```rust
fn background(self: &Self) -> Option<Rc<dyn IBrush>>
```

A brush with which to paint the background.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L332)

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

### set_background

```rust
fn set_background(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L336)

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

### background_sizing

```rust
fn background_sizing(self: &Self) -> BackgroundSizing
```

How the background is drawn relative to the border.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L341)

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

### set_background_sizing

```rust
fn set_background_sizing(self: &Self, value: BackgroundSizing)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L345)

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

### border_brush

```rust
fn border_brush(self: &Self) -> Option<Rc<dyn IBrush>>
```

A brush with which to paint the border.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L350)

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

### set_border_brush

```rust
fn set_border_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L354)

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

### border_thickness

```rust
fn border_thickness(self: &Self) -> Thickness
```

The thickness of the border.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L359)

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

### set_border_thickness

```rust
fn set_border_thickness(self: &Self, value: Thickness)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L363)

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

### corner_radius

```rust
fn corner_radius(self: &Self) -> CornerRadius
```

The radius of the border rounded corners.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L368)

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

### set_corner_radius

```rust
fn set_corner_radius(self: &Self, value: CornerRadius)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L372)

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

### box_shadow

```rust
fn box_shadow(self: &Self) -> BoxShadows
```

The box shadow effect parameters.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L377)

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

### set_box_shadow

```rust
fn set_box_shadow(self: &Self, value: BoxShadows)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L381)

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

### foreground

```rust
fn foreground(self: &Self) -> Option<Rc<dyn IBrush>>
```

A brush used to paint the text.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L386)

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

### set_foreground

```rust
fn set_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L390)

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

### font_family

```rust
fn font_family(self: &Self) -> FontFamily
```

The font family.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L395)

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

### set_font_family

```rust
fn set_font_family(self: &Self, value: FontFamily)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L399)

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

### font_size

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

The font size.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L404)

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

### set_font_size

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L408)

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

### font_style

```rust
fn font_style(self: &Self) -> FontStyle
```

The font style.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L413)

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

### set_font_style

```rust
fn set_font_style(self: &Self, value: FontStyle)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L417)

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

### font_weight

```rust
fn font_weight(self: &Self) -> FontWeight
```

The font weight.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L422)

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

### set_font_weight

```rust
fn set_font_weight(self: &Self, value: FontWeight)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L426)

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

### font_stretch

```rust
fn font_stretch(self: &Self) -> FontStretch
```

The font stretch.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L431)

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

### set_font_stretch

```rust
fn set_font_stretch(self: &Self, value: FontStretch)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L435)

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

### text_alignment

```rust
fn text_alignment(self: &Self) -> TextAlignment
```

The text alignment.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L440)

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

### set_text_alignment

```rust
fn set_text_alignment(self: &Self, value: TextAlignment)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L444)

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

### text_wrapping

```rust
fn text_wrapping(self: &Self) -> TextWrapping
```

The text wrapping.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L449)

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

### set_text_wrapping

```rust
fn set_text_wrapping(self: &Self, value: TextWrapping)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L453)

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

### text_trimming

```rust
fn text_trimming(self: &Self) -> Rc<dyn TextTrimming>
```

The text trimming.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L458)

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

### set_text_trimming

```rust
fn set_text_trimming(self: &Self, value: Rc<dyn TextTrimming>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L462)

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

### line_height

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

The line height.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L467)

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

### set_line_height

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L471)

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

### letter_spacing

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

The letter spacing.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L476)

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

### set_letter_spacing

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L480)

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

### max_lines

```rust
fn max_lines(self: &Self) -> i32
```

The max lines.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L485)

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

### set_max_lines

```rust
fn set_max_lines(self: &Self, value: i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L489)

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

### child

```rust
fn child(self: &Self) -> Option<Ref<Control>>
```

The control displayed by the presenter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L494)

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

### content

```rust
fn content(self: &Self) -> Option<BoxedValue>
```

The content to be displayed by the presenter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L503)

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

### set_content

```rust
fn set_content(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L507)

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

### content_template

```rust
fn content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
```

The data template used to display the content of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L512)

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

### set_content_template

```rust
fn set_content_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L516)

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

### horizontal_content_alignment

```rust
fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
```

The horizontal alignment of the content within the border the
control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L522)

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

### set_horizontal_content_alignment

```rust
fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L526)

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

### vertical_content_alignment

```rust
fn vertical_content_alignment(self: &Self) -> VerticalAlignment
```

The vertical alignment of the content within the border of the
control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L532)

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

### set_vertical_content_alignment

```rust
fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L536)

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

### padding

```rust
fn padding(self: &Self) -> Thickness
```

The space between the border and the child control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L541)

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

### set_padding

```rust
fn set_padding(self: &Self, value: Thickness)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L545)

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

### recognizes_access_key

```rust
fn recognizes_access_key(self: &Self) -> bool
```

Determine if the presenter should use access text in its style.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L550)

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

### set_recognizes_access_key

```rust
fn set_recognizes_access_key(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L554)

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

### host

```rust
fn host(self: &Self) -> Option<Ref<FerroObject>>
```

The host content control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L559)

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

### set_content_with_data_context

```rust
fn set_content_with_data_context(self: &Self, content: Option<BoxedValue>, data_context: Option<BoxedValue>)
```

Sets the content and the data context of the presenter at once: the
child is created with `data_context` instead of the data context
derived from the content.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L566)

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

### update_child

```rust
fn update_child(self: &Self)
```

Updates the `child` control based on the `content`.

Usually the child control is created automatically when
`apply_template` is called; however for this to happen, the control
needs to be attached to a logical tree (if the control is not attached
to the logical tree, it is reasonable to expect that the data
templates needed for the child are not yet available). This method
forces the child to be updated regardless.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L596)

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

### layout_thickness

```rust
fn layout_thickness(self: &Self) -> Thickness
```

The border thickness used for rendering: rounded to device pixels
when layout rounding is in use.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L669)

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

### arrange_override_impl

```rust
fn arrange_override_impl(self: &Self, final_size: Size, offset: Vector) -> Size
```

Arranges the child within `final_size`, with the origin of the
content area displaced by `offset`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/presenters/content_presenter.rs#L738)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- `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`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`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/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<ContentPresenter>`](/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/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)

## Availability

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