GeneratorPosition(Int32, Int32) 构造函数

定义

使用指定的索引和偏移量初始化 GeneratorPosition 的新实例。

public:
 GeneratorPosition(int index, int offset);
public GeneratorPosition (int index, int offset);
new Windows.UI.Xaml.Controls.Primitives.GeneratorPosition : int * int -> Windows.UI.Xaml.Controls.Primitives.GeneratorPosition
Public Sub New (index As Integer, offset As Integer)

参数

index
Int32

与已生成(已实现)的项相关的索引。 -1 是表示项列表的开头或结尾处虚拟项的特殊值。

offset
Int32

与已索引项旁未生成(未实现)的项相关的偏移量。 偏移量为 0 表示已索引的元素本身;偏移量为 1 表示下一个未生成(未实现)的项;偏移量为 -1 表示前一项。

注解

此结构表示Windows 运行时 (WinRT) GeneratorPosition结构的 .NET 投影。 有关详细信息,请参阅 UWP API 参考中的 GeneratorPosition

适用于