Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Columns

Represents a collection of columns.
Read time 2 minutesLast updated 6 days ago

Definition

[UxmlObject]public class Columns : ICollection<Column>, IEnumerable<Column>, IEnumerable, INotifyBindablePropertyChanged

Properties

Property

Description

CountGets the number of columns in the collection.
IsReadOnlyGets a value indicating whether the collection is readonly.
this[]Returns the column at the specified index.
primaryColumnNameIndicates the column that needs to be considered as the primary column, by ID.
reorderableIndicates whether the columns can be reordered interactively by user.
resizableIndicates whether the columns can be resized interactively by user.
resizePreviewIndicates whether columns are resized as the user drags resize handles or only upon mouse release.
stretchModeIndicates how the size of columns in this collection is automatically adjusted as other columns or the containing view get resized. The default value is Columns.StretchMode.GrowAndFill

Methods

Method

Description

AddAdds a column at the end of the collection.
ClearRemoves all columns from the collection.
ContainsWhether the columns contain the specified name.
CopyToCopies the elements of the current collection to a Array, starting at the specified index.
GetEnumeratorReturns an enumerator that iterates through the collection.
IndexOfReturns the index of the specified column if it is contained in the collection; returns -1 otherwise.
InsertInserts a column into the current instance at the specified index.
IsPrimaryChecks if the specified column is the primary one.
RemoveRemoves the first occurence of a column from the collection.
RemoveAtRemoves the column at the specified index.
ReorderDisplayReorders the display of a column at the specified source index, to the destination index.

Events

Member

Description

propertyChangedCalled when a property has changed.

Enums

Enum

Description

Columns.StretchModeIndicates how the size of a stretchable column in this collection should get automatically adjusted as other columns or its containing view get resized. The default value is Columns.StretchMode.Grow.