Class MultiColumnTreeViewComponent
Related to:SoyWar.UIToolkit.Elements
/
Inherits from:objectObjectComponentBehaviourMonoBehaviourUIToolkitComponentUIToolkitComponent<MultiColumnTreeView>BaseVerticalCollectionViewComponent<MultiColumnTreeView>BaseTreeViewComponent<MultiColumnTreeView>
/
Implemented in:SoyWar.UIToolkit.dll
Implements interfaces:IUIToolkitEvent<MultiColumnTreeView>IEnumerable<MultiColumnTreeView>IEnumerable
Description
Component linked toMultiColumnTreeView. (Since Unity 6.0)
Syntax
[AddComponentMenu("UI Toolkit/Containers/Tree View", 5)]
public class MultiColumnTreeViewComponent : BaseTreeViewComponent<MultiColumnTreeView>, IUIToolkitEvent<MultiColumnTreeView>, IEnumerable<MultiColumnTreeView>, IEnumerableProperties
| Name | Description |
|---|---|
| ColumnSortingChangedEvent | This event is called when column sort changed. |
| HeaderContextMenuPopulateEvent | This event is called when a new contextual menu appears. |
Extension Methods
Inherited Members
Properties
| Name | Description |
|---|---|
| ItemsAddedEvent | This event is called when the expansion of theTreeViewchanged. |
| ItemIndexChangedEvent | Called when an item is moved in the itemsSource. |
| ItemsChosenEvent | Callback triggered when the user acts on a selection of one or more items, for example by double-clicking or pressing Enter. |
| ItemsSourceChangedEvent | Called when the itemsSource is reassigned or changes size. |
| SelectedIndicesChangedEvent | Callback triggered when the selection changes. |
| SelectionChangedEvent | Callback triggered when the selection changes. |
| OffEvent | This event is called when an element is removed. |
| OnEvent | This event is called when an element is added. |
| Document | |
| OverrideHost | Chooses a template as host instead of the main document. |
| SearchFrom | Targets children from the parent's container (indirect) or via the hierarchy (direct). |
| Selector | |
| Target | Targets the first, last or all active elements. |
Methods
| Name | Description |
|---|---|
| GetEnumerator() | |
| Set(TElement) | |
| Unset(TElement) | |
| AddCustomStyles(StyleSheet) | Adds custom style for all targeted elements. |
| AddCustomStyles(params StyleSheet[]) | Adds custom styles for all targeted elements. |
| Count() | Count the number of active elements |
| ForceElementsUpdate() | Forces elements to be updated. |
| RemoveCustomStyles(StyleSheet) | Removes custom style from all targeted elements. |
| RemoveCustomStyles(params StyleSheet[]) | Removes custom styles from all targeted elements. |
| SetSelectorFromText(string) | |
| SetSelectorFromText(string, out string) | |
| Validate() | Checks if the document and the selector is valid. |
Operators
| Name |
|---|
| implicit operator TElement(UIToolkitComponent<TElement>) |
