# ColumnOptions

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

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

```rust
struct ColumnOptions<M: 'static>
```

`ColumnOptions<TModel>`.

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

## Members

- [`new`](#function-new)
- [`can_user_resize_column`](#function-can_user_resize_column)
- [`set_can_user_resize_column`](#function-set_can_user_resize_column)
- [`can_user_sort_column`](#function-can_user_sort_column)
- [`set_can_user_sort_column`](#function-set_can_user_sort_column)
- [`min_width`](#function-min_width)
- [`set_min_width`](#function-set_min_width)
- [`max_width`](#function-max_width)
- [`set_max_width`](#function-set_max_width)
- [`compare_ascending`](#function-compare_ascending)
- [`set_compare_ascending`](#function-set_compare_ascending)
- [`compare_descending`](#function-compare_descending)
- [`set_compare_descending`](#function-set_compare_descending)
- [`begin_edit_gestures`](#function-begin_edit_gestures)
- [`set_begin_edit_gestures`](#function-set_begin_edit_gestures)

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

### new

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



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

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

### can_user_resize_column

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

Whether the user can resize the column by dragging; `None`: the control's
`CanUserResizeColumns` applies.

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

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

### set_can_user_resize_column

```rust
fn set_can_user_resize_column(self: &Self, value: Option<bool>)
```



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

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

### can_user_sort_column

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

Whether the user can sort the column by clicking; `None`: the control's
`CanUserSortColumns` applies.

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

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

### set_can_user_sort_column

```rust
fn set_can_user_sort_column(self: &Self, value: Option<bool>)
```



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

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

### min_width

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

The minimum width of the column.

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

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

### set_min_width

```rust
fn set_min_width(self: &Self, value: GridLength)
```



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

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

### max_width

```rust
fn max_width(self: &Self) -> Option<GridLength>
```

The maximum width of the column.

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

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

### set_max_width

```rust
fn set_max_width(self: &Self, value: Option<GridLength>)
```



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

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

### compare_ascending

```rust
fn compare_ascending(self: &Self) -> Option<Comparison<M>>
```

A custom comparison for the ascending order.

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

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

### set_compare_ascending

```rust
fn set_compare_ascending(self: &Self, value: Option<Comparison<M>>)
```



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

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

### compare_descending

```rust
fn compare_descending(self: &Self) -> Option<Comparison<M>>
```

A custom comparison for the descending order.

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

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

### set_compare_descending

```rust
fn set_compare_descending(self: &Self, value: Option<Comparison<M>>)
```



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

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

### begin_edit_gestures

```rust
fn begin_edit_gestures(self: &Self) -> BeginEditGestures
```

The gestures that make a cell enter edit mode.

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

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

### set_begin_edit_gestures

```rust
fn set_begin_edit_gestures(self: &Self, value: BeginEditGestures)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Default`
- `Clone`
- [`IColumnOptions<M>`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icolumnoptions/)
- [`ICellOptions`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-icelloptions/)

## Availability

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