# CellColumnFactory

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

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

```rust
struct CellColumnFactory
```

Creates the view columns of the columns of a presentation (`CellColumnFactory<TModel>`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/presentation/cell_column_factory.rs#L16)

## Members

- [`new`](#function-new)
- [`options`](#function-options)
- [`create`](#function-create)

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

### new

```rust
fn new(options: Rc<TreeDataGridPresentationOptions>) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/presentation/cell_column_factory.rs#L21)

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

### options

```rust
fn options(self: &Self) -> &Rc<TreeDataGridPresentationOptions>
```

The options whose factories the factory uses.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/presentation/cell_column_factory.rs#L26)

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

### create

```rust
fn create(self: &Self, column: &Rc<dyn CoreColumn>) -> Result<ColumnRef, String>
```

The view column of `column`; an error (the reference's `InvalidOperationException`) when
the column has a presentation key with no registered presentation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/presentation/cell_column_factory.rs#L32)

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