IRecyclingItemContainerGenerator.Recycle(GeneratorPosition, Int32) 方法

定义

将项容器与其数据项取消关联,并保存容器,以便稍后可以重复使用这些容器用于其他数据项。

public:
 void Recycle(System::Windows::Controls::Primitives::GeneratorPosition position, int count);
public void Recycle(System.Windows.Controls.Primitives.GeneratorPosition position, int count);
abstract member Recycle : System.Windows.Controls.Primitives.GeneratorPosition * int -> unit
Public Sub Recycle (position As GeneratorPosition, count As Integer)

参数

position
GeneratorPosition

要重用的第一个元素的从零开始的索引。 position 必须引用以前生成的(已实现)项。

count
Int32

要重用的元素数,从 .position

适用于