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. 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

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.