# CellColumnBase

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

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

```rust
struct CellColumnBase
```

The header, width, sort direction and layout state of a presented column (`CellColumnBase<TModel>`).

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

## Members

- [`new`](#function-new)
- [`notifying`](#function-notifying)
- [`options`](#function-options)
- [`actual_width`](#function-actual_width)
- [`width`](#function-width)
- [`header`](#function-header)
- [`set_header`](#function-set_header)
- [`sort_direction`](#function-sort_direction)
- [`set_sort_direction`](#function-set_sort_direction)
- [`tag`](#function-tag)
- [`set_tag`](#function-set_tag)
- [`can_user_resize`](#function-can_user_resize)
- [`min_actual_width`](#function-min_actual_width)
- [`max_actual_width`](#function-max_actual_width)
- [`star_width_was_constrained`](#function-star_width_was_constrained)
- [`requires_unconstrained_width_measurement`](#function-requires_unconstrained_width_measurement)
- [`cell_measured`](#function-cell_measured)
- [`calculate_star_width`](#function-calculate_star_width)
- [`commit_actual_width`](#function-commit_actual_width)
- [`set_width`](#function-set_width)

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

### new

```rust
fn new(header: Option<BoxedValue>, width: Option<GridLength>, options: CellColumnOptions) -> Self
```



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

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

### notifying

```rust
fn notifying(self: &Self) -> &NotifyingBase
```

The `PropertyChanged` of the column.

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

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

### options

```rust
fn options(self: &Self) -> &CellColumnOptions
```



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

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

### actual_width

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

The width the column is laid out at.

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

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

### width

```rust
fn width(self: &Self) -> GridLength
```



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

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

### header

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



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

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

### set_header

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



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

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

### sort_direction

```rust
fn sort_direction(self: &Self) -> Option<ListSortDirection>
```



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

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

### set_sort_direction

```rust
fn set_sort_direction(self: &Self, value: Option<ListSortDirection>)
```



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

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

### tag

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



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

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

### set_tag

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



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

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

### can_user_resize

```rust
fn can_user_resize(self: &Self) -> Option<bool>
```

`IColumn.CanUserResize`.

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

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

### min_actual_width

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

`IUpdateColumnLayout.MinActualWidth`.

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

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

### max_actual_width

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

`IUpdateColumnLayout.MaxActualWidth`.

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

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

### star_width_was_constrained

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

`IUpdateColumnLayout.StarWidthWasConstrained`.

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

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

### requires_unconstrained_width_measurement

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

`IColumnMeasurementOptions.RequiresUnconstrainedWidthMeasurement`.

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

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

### cell_measured

```rust
fn cell_measured(self: &Self, width: f64, _row_index: i32) -> f64
```

`IUpdateColumnLayout.CellMeasured`.

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

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

### calculate_star_width

```rust
fn calculate_star_width(self: &Self, available_width: f64, total_stars: f64)
```

`IUpdateColumnLayout.CalculateStarWidth`.
## Panics
When the column is not a star column (`InvalidOperationException`).

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

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

### commit_actual_width

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

`IUpdateColumnLayout.CommitActualWidth`.

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

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

### set_width

```rust
fn set_width(self: &Self, width: GridLength)
```

`IUpdateColumnLayout.SetWidth`.

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

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