語言

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 struct的.NET投影。 欲了解更多資訊,請參閱 UWP API 參考中的 GeneratorPosition 。

偏移量為 0 指的是索引元素本身,偏移量 1 指的是下一個未產生(未實現)的項目,偏移量為 -1 則指的是前一個項目。

適用於