# ColumnDefinition

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/behaviors/struct-columndefinition/

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

```rust
struct ColumnDefinition
```

The attached `IsVisible` property of a column definition of a grid: a hidden column has a
width of zero, and gets back the width it had when it is shown again.

See the discussion 6773 of the upstream project.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/behaviors/column_definition.rs#L10)

## Members

- [`TYPE`](#assoc_const-type)
- [`is_visible_property`](#function-is_visible_property)
- [`get_is_visible`](#function-get_is_visible)
- [`set_is_visible`](#function-set_is_visible)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/behaviors/column_definition.rs#L12)

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

### is_visible_property

```rust
fn is_visible_property() -> &'static AttachedProperty<bool>
```

Defines the `IsVisible` attached property: whether the column is shown.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/behaviors/column_definition.rs#L14)

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

### get_is_visible

```rust
fn get_is_visible(column_definition: &ferroui_controls::ColumnDefinition) -> bool
```

Gets the value of the attached `is_visible_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/behaviors/column_definition.rs#L57)

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

### set_is_visible

```rust
fn set_is_visible(column_definition: &ferroui_controls::ColumnDefinition, visibility: bool)
```

Sets the value of the attached `is_visible_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/behaviors/column_definition.rs#L62)

## 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`
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)

## Availability

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