語言

Virtualize<TItem>.InitialItemIndex 屬性

定義

在第一次互動渲染時,取得或設定該項目的零為基礎索引,要捲動到。 當元件首次知道其物品數量時套用一次,後續重新渲染時忽略;若要在之後任何時候程式化捲動,請呼叫 ScrollToItemAsync(Int32, CancellationToken)。 超出範圍的數值會被鎖定。 預設值 0,表示沒有初始捲動。

[Microsoft.AspNetCore.Components.Parameter]
public int InitialItemIndex { get; set; }
[<Microsoft.AspNetCore.Components.Parameter>]
member this.InitialItemIndex : int with get, set
Public Property InitialItemIndex As Integer

屬性值

屬性

適用於