Table of Contents

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

items IReadOnlyList<object>
keySelector Func<object, string>
itemHeight float
renderer Func<object, VNode>
overscan int

Exceptions

ArgumentNullException

items, keySelector, or renderer is null.

ArgumentOutOfRangeException

itemHeight is <= 0, or overscan is < 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

items IReadOnlyList<object>
keySelector Func<object, string>
itemHeight Func<int, float>
renderer Func<object, VNode>
overscan int

Exceptions

ArgumentNullException

items, keySelector, itemHeight or renderer is null.

ArgumentOutOfRangeException

overscan is < 0.