Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Column

Represents a column in multi-column views such as multi-column list view or multi-column tree view. Provides the properties to define how user interacts with a column in a multi-column view, how its data and the data of each cell in this column are represented.
Read time 2 minutesLast updated 5 days ago

Definition

public class Column : INotifyBindablePropertyChanged

Properties

Property

Description

bindCellCallback for binding the specified data item at the given row to the visual element.
bindHeaderCallback for binding the header element to this column.
bindingPathPath of the target property to be bound.
cellTemplateThe VisualElement that is the template for each cell of the column.
collectionThe column collection that contains this column.
comparisonThe comparison to use when using ColumnSortingMode.Default. Compares two items by their index in the source.
destroyCellCallback for destroying the VisualElement that was built for this column.
destroyHeaderCallback for destroying the visual representation of the column in the header.
headerTemplateThe VisualElement that is the template for the header of the column.
iconThe icon of the column.
makeCellCallback for constructing the VisualElement that is the template for each cell of the column.
makeHeaderCallback for constructing the visual representation of the column in the header.
maxWidthThe maximum width of the column.
minWidthThe minimum width of the column.
nameThe name of the column.
optionalIndicates whether the column is optional. Optional columns be shown or hidden interactively by the user.
resizableIndicates whether the column can be resized interactively by the user.
sortableIndicates whether the column can be sorted.
stretchableIndicates whether the column will be automatically resized to fill the available space within its container.
titleThe title of the column.
unbindCellCallback for unbinding the specified data item at the given row from the visual element.
unbindHeaderCallback for unbinding the header element to this column.
visibleIndicates whether the column is visible.
widthThe desired width of the column.

Events

Member

Description

propertyChangedCalled when a property has changed.