GeneratorPosition.Offset 属性

定义

获取或设置与已索引项旁未生成(未实现)的项相关的偏移量。

public:
 property int Offset { int get(); void set(int value); };
public int Offset { get; set; }
member this.Offset : int with get, set
Public Property Offset As Integer

属性值

相对于未生成的 (未实现) 索引项附近的项的偏移量。

注解

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

偏移量 0 表示索引元素本身,偏移量 1 表示下一个未生成的 (未实现) 项,偏移量 -1 表示上一项。

适用于