GeneratorPosition GeneratorPosition GeneratorPosition GeneratorPosition Struct

定義

描述 ItemContainerGenerator 所管理項目的位置。Describes the position of an item that is managed by ItemContainerGenerator.

public value class GeneratorPosition
[System.Security.SecurityCritical]
public struct GeneratorPosition
type GeneratorPosition = struct
Public Structure GeneratorPosition
繼承
GeneratorPositionGeneratorPositionGeneratorPositionGeneratorPosition
屬性

備註

這個結構代表 Windows 執行階段 (WinRT) GeneratorPosition結構的 .net 投射。This struct represents the .NET projection of the Windows Runtime (WinRT) GeneratorPosition struct. 如需詳細資訊, 請參閱 UWP API 參考中的GeneratorPositionFor more information, see GeneratorPosition in the UWP API reference.

建構函式

GeneratorPosition(Int32, Int32) GeneratorPosition(Int32, Int32) GeneratorPosition(Int32, Int32) GeneratorPosition(Int32, Int32)

使用指定的索引和位移,初始化 GeneratorPosition 的新執行個體。Initializes a new instance of GeneratorPosition with the specified index and offset.

屬性

Index Index Index Index

取得或設定相對於產生 (實現) 項目的索引。Gets or sets the index that is relative to the generated (realized) items.

Offset Offset Offset Offset

取得或設定相對於索引項目附近未產生 (未實現) 項目的位移。Gets or sets the offset that is relative to the ungenerated (unrealized) items near the indexed item.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

比較 GeneratorPosition 之指定的執行個體和目前執行個體的值是否相等。Compares the specified instance and the current instance of GeneratorPosition for value equality.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

傳回這個 GeneratorPosition 的雜湊程式碼。Returns the hash code for this GeneratorPosition.

ToString() ToString() ToString() ToString()

傳回這個 GeneratorPosition 之執行個體的字串表示。Returns a string representation of this instance of GeneratorPosition.

運算子

Equality(GeneratorPosition, GeneratorPosition) Equality(GeneratorPosition, GeneratorPosition) Equality(GeneratorPosition, GeneratorPosition) Equality(GeneratorPosition, GeneratorPosition)

比較兩個 GeneratorPosition 物件的值是否相等。Compares two GeneratorPosition objects for value equality.

Inequality(GeneratorPosition, GeneratorPosition) Inequality(GeneratorPosition, GeneratorPosition) Inequality(GeneratorPosition, GeneratorPosition) Inequality(GeneratorPosition, GeneratorPosition)

比較兩個 GeneratorPosition 物件的值是否不相等。Compares two GeneratorPosition objects for value inequality.

適用於

另請參閱