Constructor VirtualListNode
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
VirtualListNode(IReadOnlyList<object>, Func<object, string>, float, Func<object, VNode>, int)
Creates a virtualized list. Prefer the VirtualList<T>(IReadOnlyList<T>, Func<T, string>, float, Func<T, VNode>, int, string?, string?, string?) factory; this is the type-erased form it builds.
public VirtualListNode(IReadOnlyList<object> items, Func<object, string> keySelector, float itemHeight, Func<object, VNode> renderer, int overscan)
Parameters
itemsIReadOnlyList<object>keySelectorFunc<object, string>itemHeightfloatrendererFunc<object, VNode>overscanint
Exceptions
- ArgumentNullException
items,keySelector, orrendereris null.- ArgumentOutOfRangeException
itemHeightis <= 0, oroverscanis < 0.