# ReflectionTextColumn

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-treedatagrid/models/struct-reflectiontextcolumn/

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

```rust
struct ReflectionTextColumn
```

`ReflectionTextColumn`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/reflection_text_column.rs#L27)

## Members

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

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

### new

```rust
fn new(header: Option<BoxedValue>, getter: ObjectGetter, setter: Option<ObjectSetter>, links: Vec<ObjectLink>, width: GridLength, options: Rc<TextColumnOptions<BoxedValue>>) -> Rc<TextColumn<BoxedValue, Option<BoxedValue>>>
```

A text column whose value `getter` reads and `setter` (if any) writes, re-read when one of
the objects `links` returns changes (`ReflectionTextColumn(header, getter, setter, links,
width, options)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/reflection_text_column.rs#L33)

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

### for_property

```rust
fn for_property(header: Option<BoxedValue>, property_name: &'static str, is_read_only: bool, width: GridLength, options: Rc<TextColumnOptions<BoxedValue>>) -> Rc<TextColumn<BoxedValue, Option<BoxedValue>>>
```

A text column of the property `property_name` of the models, read and written through the
property metadata of the models' types (`ModelTypes`), and observed by the models'
`PropertyChanged` for that name.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/reflection_text_column.rs#L53)

## Trait implementations

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

## Availability

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