# IColumn

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

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

```rust
trait IColumn: INotifyPropertyChanged + Any
```

A view column (`IColumn` of the control): what the column headers and the layout read.

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

## Members

- [`actual_width`](#function-actual_width)
- [`can_user_resize`](#function-can_user_resize)
- [`header`](#function-header)
- [`width`](#function-width)
- [`sort_direction`](#function-sort_direction)
- [`set_sort_direction`](#function-set_sort_direction)
- [`tag`](#function-tag)
- [`set_tag`](#function-set_tag)
- [`as_any`](#function-as_any)
- [`as_update_column_layout`](#function-as_update_column_layout)
- [`as_cell_column`](#function-as_cell_column)
- [`requires_unconstrained_width_measurement`](#function-requires_unconstrained_width_measurement)
- [`core_column`](#function-core_column)

<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/models/contracts.rs#L151)

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

### can_user_resize

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



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

<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/models/contracts.rs#L153)

<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/models/contracts.rs#L154)

<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/models/contracts.rs#L155)

<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/models/contracts.rs#L156)

<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/models/contracts.rs#L157)

<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/models/contracts.rs#L158)

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

### as_any

```rust
fn as_any(self: &Self) -> &dyn Any
```



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

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

### as_update_column_layout

```rust
fn as_update_column_layout(self: &Self) -> Option<&dyn IUpdateColumnLayout>
```

The column's layout (`is IUpdateColumnLayout`).

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

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

### as_cell_column

```rust
fn as_cell_column(self: &Self) -> Option<&dyn ICellColumn>
```

The column as a column that creates cells (`IColumn<TModel>`, erased).

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

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

### requires_unconstrained_width_measurement

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

Whether the column must be measured with an unconstrained width (`IColumnMeasurementOptions`).

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

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

### core_column

```rust
fn core_column(self: &Self) -> Option<Rc<dyn ferroui_treedatagrid_core::models::IColumn>>
```

The core column the view column presents, if any.

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

## Trait implementations

- [`IColumn`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icolumn/)

## Availability

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