Class ListView
Assembly: UnityEngine.dll
Syntax
public class ListView : VisualElement, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle
Constructors
|
Improve this Doc
View Source
ListView()
Declaration
|
Improve this Doc
View Source
ListView(IList, Int32, Func<VisualElement>, Action<VisualElement, Int32>)
Declaration
public ListView(IList itemsSource, int itemHeight, Func<VisualElement> makeItem, Action<VisualElement, int> bindItem)
Parameters
Properties
|
Improve this Doc
View Source
bindItem
Declaration
public Action<VisualElement, int> bindItem { get; set; }
Property Value
|
Improve this Doc
View Source
contentContainer
Declaration
public override VisualElement contentContainer { get; }
Property Value
Overrides
|
Improve this Doc
View Source
itemHeight
Declaration
public int itemHeight { get; set; }
Property Value
|
Improve this Doc
View Source
itemsSource
Declaration
public IList itemsSource { get; set; }
Property Value
|
Improve this Doc
View Source
makeItem
Declaration
public Func<VisualElement> makeItem { get; set; }
Property Value
|
Improve this Doc
View Source
selectedIndex
Declaration
public int selectedIndex { get; set; }
Property Value
|
Improve this Doc
View Source
selectedItem
Declaration
public object selectedItem { get; }
Property Value
|
Improve this Doc
View Source
selectionType
Declaration
public SelectionType selectionType { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AddToSelection(Int32)
Declaration
protected void AddToSelection(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
|
Improve this Doc
View Source
ClearSelection()
Declaration
protected void ClearSelection()
|
Improve this Doc
View Source
OnKeyDown(KeyDownEvent)
Declaration
public void OnKeyDown(KeyDownEvent evt)
Parameters
|
Improve this Doc
View Source
OnPersistentDataReady()
Declaration
public override void OnPersistentDataReady()
Overrides
|
Improve this Doc
View Source
OnStyleResolved(ICustomStyle)
Declaration
protected override void OnStyleResolved(ICustomStyle styles)
Parameters
Overrides
|
Improve this Doc
View Source
Refresh()
Declaration
|
Improve this Doc
View Source
RemoveFromSelection(Int32)
Declaration
protected void RemoveFromSelection(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
|
Improve this Doc
View Source
Declaration
public void ScrollTo(VisualElement visualElement)
Parameters
|
Improve this Doc
View Source
Declaration
public void ScrollToItem(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
|
Improve this Doc
View Source
SetSelection(Int32)
Declaration
protected void SetSelection(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Events
|
Improve this Doc
View Source
onItemChosen
Declaration
public event Action<object> onItemChosen
Event Type
|
Improve this Doc
View Source
onSelectionChanged
Declaration
public event Action<List<object>> onSelectionChanged
Event Type
Implements
Extension Methods