Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MultiColumnListView

A list view with multi column support. For more information, refer to MultiColumnListView.
Read time 10 minutesLast updated 2 days ago

Definition

public class MultiColumnListView : BaseListView, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, ISerializationCallbackReceiver

Constructors

Constructor

Description

MultiColumnListView()Initializes a MultiColumnListView with an empty header.
MultiColumnListView(UnityEngine.UIElements.Columns)Initializes a MultiColumnListView with a list of column definitions.

Properties

Property

Description

columnsThe collection of columns for the multi-column header.
sortColumnDescriptionsThe collection of sorted columns by default.
sortedColumnsContains information about which columns are currently being sorted.
sortingModeIndicates how to sort columns. To enable sorting, set it to ColumnSortingMode.Default or ColumnSortingMode.Custom. The
Default
mode uses the sorting algorithm provided by MultiColumnController, acting on indices. You can also implement your own sorting with the
Custom
mode, by responding to the MultiColumnListView.columnSortingChanged event.
viewControllerThe view controller for this view, cast as a MultiColumnListViewController.

Methods

Method

Description

SetViewControllerAssigns the view controller for this view and registers all events required for it to function properly.

Events

Member

Description

columnSortingChangedIf a column is clicked to change sorting, this event is raised to allow users to sort the list view items. For a default implementation, set MultiColumnListView.sortingMode to ColumnSortingMode.Default.
headerContextMenuPopulateEventIf a column is right-clicked to show context menu options, this event is raised to allow users to change the available options.

Inheritance

Inherited Members