Version: 2022.1
LanguageEnglish
  • C#

Columns

class in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Represents a collection of columns.

Properties

Count Gets the number of columns in the collection.
IsReadOnly Gets a value indicating whether the collection is readonly.
primaryColumnName Indicates the column that needs to be considered as primary column, by id.
reorderable Indicates whether the columns can be reordered interactively by user.
resizable Indicates whether the columns can be resized interactively by user.
resizePreview Indicates whether columns are resized as the user drags resize handles or only upon mouse release.
stretchMode Indicates how the size of columns in this collection is automatically adjusted as other columns or the containing view get resized. The default value is StretchMode.GrowAndFill
this[int] Returns the column at the specified index.

Public Methods

Add Adds a column at the end of the collection.
Clear Removes all columns from the collection.
Contains Whether the columns contain the specified name.
CopyTo Copies the elements of the current collection to a Array, starting at the specified index.
GetEnumerator Returns an enumerator that iterates through the collection.
IndexOf Returns the index of the specified column if it is contained in the collection; returns -1 otherwise.
Insert Inserts a column into the current instance at the specified index.
IsPrimary Checks if the specified column is the primary one.
Remove Removes the first occurence of a column from the collection.
RemoveAt Removes the column at the specified index.
ReorderDisplay Reorders the display of a column at the specified source index, to the destination index.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961