Constructor VirtualListNode
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
VirtualListNode(IReadOnlyList<object?>, Func<object?, string>, float, Func<object?, VNode>, int)
Creates a virtualized list of items of one height. Prefer the VirtualList<T>(IReadOnlyList<T>, Func<T, string>, float, Func<T, VNode>, bool, int, string?, string?, string?, Ref<VirtualListHandle>?, FiberEventBinding[]?) 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.
VirtualListNode(IReadOnlyList<object?>, Func<object?, string>, Func<int, float>, Func<object?, VNode>, int)
Creates a virtualized list whose items each take the height itemHeight gives for
their index. Prefer the VirtualList<T>(IReadOnlyList<T>, Func<T, string>, Func<int, float>, Func<T, VNode>, bool, int, string?, string?, string?, Ref<VirtualListHandle>?, FiberEventBinding[]?)
factory; this is the type-erased form it builds.
public VirtualListNode(IReadOnlyList<object?> items, Func<object?, string> keySelector, Func<int, float> itemHeight, Func<object?, VNode> renderer, int overscan)
Parameters
itemsIReadOnlyList<object>keySelectorFunc<object, string>itemHeightFunc<int, float>rendererFunc<object, VNode>overscanint
Exceptions
- ArgumentNullException
items,keySelector,itemHeightorrendereris null.- ArgumentOutOfRangeException
overscanis < 0.