Show / Hide Table of Contents

Class ListView

A virtualized list that allows up to thousands of items to be displayed.

Inheritance
System.Object
UObject
Visual
Widget
ListViewBase
ListView
TileView
TreeView
Inherited Members
ListViewBase.GetDisplayedEntryWidgets(Byte)
ListViewBase.RegenerateAllEntries()
ListViewBase.ScrollToBottom()
ListViewBase.ScrollToTop()
ListViewBase.EntryWidgetClass
ListViewBase.NumDesignerPreviewEntries
Widget.ForceLayoutPrepass()
Widget.ForceVolatile(Boolean)
Widget.GetCachedGeometry(Geometry)
Widget.GetClipping()
Widget.GetDesiredSize()
Widget.GetIsEnabled()
Widget.GetOwningLocalPlayer()
Widget.GetOwningPlayer()
Widget.GetParent()
Widget.GetRenderOpacity()
Widget.GetVisibility()
Widget.HasAnyUserFocus()
Widget.HasFocusedDescendants()
Widget.HasKeyboardFocus()
Widget.HasMouseCapture()
Widget.HasMouseCaptureByUser(Int32, Int32)
Widget.HasUserFocus(PlayerController)
Widget.HasUserFocusedDescendants(PlayerController)
Widget.InvalidateLayoutAndVolatility()
Widget.IsHovered()
Widget.IsVisible()
Widget.RemoveFromParent()
Widget.ResetCursor()
Widget.SetAllNavigationRules(EUINavigationRule, Name)
Widget.SetClipping(EWidgetClipping)
Widget.SetCursor(Byte)
Widget.SetIsEnabled(Boolean)
Widget.SetKeyboardFocus()
Widget.SetNavigationRule(EUINavigation, EUINavigationRule, Name)
Widget.SetRenderAngle(Single)
Widget.SetRenderOpacity(Single)
Widget.SetRenderScale(Vector2D)
Widget.SetRenderShear(Vector2D)
Widget.SetRenderTransform(WidgetTransform)
Widget.SetRenderTransformPivot(Vector2D)
Widget.SetRenderTranslation(Vector2D)
Widget.SetToolTip(Widget)
Widget.SetToolTipText(Byte)
Widget.SetUserFocus(PlayerController)
Widget.SetVisibility(ESlateVisibility)
Widget.Slot
Widget.ToolTipWidget
Widget.RenderTransform
Widget.RenderTransformPivot
Widget.bIsVariable
Widget.bCreatedByConstructionScript
Widget.bIsEnabled
Widget.bOverride_Cursor
Widget.bIsVolatile
Widget.bHiddenInDesigner
Widget.bExpandedInDesigner
Widget.bLockedInDesigner
Widget.Cursor
Widget.RenderOpacity
Widget.Navigation
Widget.NativeBindings
Widget.DesignerFlags
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.UMG
Assembly: UE4DotNet.dll
Syntax
public class ListView : ListViewBase
Remarks

An important distinction to keep in mind here is "Item" vs. "Entry" The list itself is based on a list of n items, but only creates as many entry widgets as can fit on screen. For example, a scrolling ListView of 200 items with 5 currently visible will only have created 5 entry widgets.

To make a widget usable an an entry in a ListView, it must inherit from the IUserObjectListEntry interface.

Properties

| Improve this Doc View Source

bClearSelectionOnClick

Declaration
public bool bClearSelectionOnClick { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

Declaration
public static ListView DefaultObject { get; }
Property Value
Type Description
ListView
| Improve this Doc View Source

EntrySpacing

Entry Spacing

Declaration
public float EntrySpacing { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

ListItems

List Items

Declaration
public ObjectArrayField<UObject> ListItems { get; }
Property Value
Type Description
ObjectArrayField<UObject>
| Improve this Doc View Source

SelectionMode

Selection Mode

Declaration
public byte SelectionMode { get; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

Methods

| Improve this Doc View Source

AddItem(UObject)

Adds an the item to the list

Declaration
public void AddItem(UObject Item)
Parameters
Type Name Description
UObject Item
| Improve this Doc View Source

BP_CancelScrollIntoView()

Cancels a previous request to scroll and item into view.

Declaration
public void BP_CancelScrollIntoView()
| Improve this Doc View Source

BP_ClearSelection()

Clear selection

Declaration
public void BP_ClearSelection()
| Improve this Doc View Source

BP_GetNumItemsSelected()

Gets the number of items currently selected in the list

Declaration
public int BP_GetNumItemsSelected()
Returns
Type Description
System.Int32
| Improve this Doc View Source

BP_GetSelectedItem()

Gets the first selected item, if any; recommended that you only use this for single selection lists.

Declaration
public UObject BP_GetSelectedItem()
Returns
Type Description
UObject
| Improve this Doc View Source

BP_GetSelectedItems()

Gets a list of all the currently selected items

Declaration
public (IReadOnlyCollection<UObject>, bool) BP_GetSelectedItems()
Returns
Type Description
System.ValueTuple<System.Collections.Generic.IReadOnlyCollection<UObject>, System.Boolean>
| Improve this Doc View Source

BP_IsItemVisible(UObject)

Gets whether the entry for the given object is currently visible in the list

Declaration
public bool BP_IsItemVisible(UObject Item)
Parameters
Type Name Description
UObject Item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

BP_NavigateToItem(UObject)

Requests that the given item is navigated to, scrolling it into view if needed.

Declaration
public void BP_NavigateToItem(UObject Item)
Parameters
Type Name Description
UObject Item
| Improve this Doc View Source

BP_ScrollItemIntoView(UObject)

Requests that the given item is scrolled into view

Declaration
public void BP_ScrollItemIntoView(UObject Item)
Parameters
Type Name Description
UObject Item
| Improve this Doc View Source

BP_SetItemSelection(UObject, Boolean)

Sets whether the given item is selected.

Declaration
public void BP_SetItemSelection(UObject Item, bool bSelected)
Parameters
Type Name Description
UObject Item
System.Boolean bSelected
| Improve this Doc View Source

BP_SetListItems(Byte)

Sets the array of objects to display rows for in the list

Declaration
public void BP_SetListItems(byte InListItems)
Parameters
Type Name Description
System.Byte InListItems
| Improve this Doc View Source

BP_SetSelectedItem(UObject)

Sets the given item as the sole selected item.

Declaration
public void BP_SetSelectedItem(UObject Item)
Parameters
Type Name Description
UObject Item
| Improve this Doc View Source

ClearListItems()

Removes all items from the list

Declaration
public void ClearListItems()
| Improve this Doc View Source

GetIndexForItem(UObject)

Returns the index that the specified item is at. Will return the first found, or -1 for not found

Declaration
public int GetIndexForItem(UObject Item)
Parameters
Type Name Description
UObject Item
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetItemAt(Int32)

Returns the item at the given index

Declaration
public UObject GetItemAt(int Index)
Parameters
Type Name Description
System.Int32 Index
Returns
Type Description
UObject
| Improve this Doc View Source

GetListItems(Byte)

Gets the list of all items in the list.

Declaration
public void GetListItems(byte ReturnValue)
Parameters
Type Name Description
System.Byte ReturnValue
Remarks

Note that each of these items only has a corresponding entry widget when visible. Use GetDisplayedEntryWidgets to get the currently displayed widgets.

| Improve this Doc View Source

GetNumItems()

Returns the total number of items

Declaration
public int GetNumItems()
Returns
Type Description
System.Int32
| Improve this Doc View Source

IsRefreshPending()

@return True if a refresh is pending and the list will be rebuilt on the next tick

Declaration
public bool IsRefreshPending()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

NavigateToIndex(Int32)

Requests that the item at the given index navigated to, scrolling it into view if needed.

Declaration
public void NavigateToIndex(int Index)
Parameters
Type Name Description
System.Int32 Index
| Improve this Doc View Source

New(UObject, Name)

Spawn an object of this class

Declaration
public static ListView New(UObject obj = null, Name name = default(Name))
Parameters
Type Name Description
UObject obj
Name name
Returns
Type Description
ListView
| Improve this Doc View Source

ScrollIndexIntoView(Int32)

Requests that the item at the given index is scrolled into view

Declaration
public void ScrollIndexIntoView(int Index)
Parameters
Type Name Description
System.Int32 Index
| Improve this Doc View Source

SetSelectedIndex(Int32)

Sets the item at the given index as the sole selected item.

Declaration
public void SetSelectedIndex(int Index)
Parameters
Type Name Description
System.Int32 Index
| Improve this Doc View Source

SetSelectionMode(Byte)

Sets the new selection mode, preserving the current selection where possible.

Declaration
public void SetSelectionMode(byte SelectionMode)
Parameters
Type Name Description
System.Byte SelectionMode

Operators

| Improve this Doc View Source

Implicit(IntPtr to ListView)

Convert from IntPtr to UObject

Declaration
public static implicit operator ListView(IntPtr p)
Parameters
Type Name Description
System.IntPtr p
Returns
Type Description
ListView
  • Improve this Doc
  • View Source
Back to top Generated by DocFX