GeneratorPosition(Int32, Int32) 建構函式

定義

使用指定的索引和位移,初始化 GeneratorPosition 的新執行個體。

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

參數

index
Int32

Int32 索引,相對於產生的 (實現的) 項目。 -1 是一個參考項目清單開端或尾端之虛構的特殊值。

offset
Int32

Int32 位移與索引項目附近之未產生的 (未實現的) 項目相關。 位移為 0,會參考索引項目本身,位移為 1,會參考下一個未產生的 (未實現的) 項目,而位移為 -1,則參考前一個項目。

適用於