GeneratorPosition 结构

定义

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

public value class GeneratorPosition
public struct GeneratorPosition
[System.Security.SecurityCritical]
public struct GeneratorPosition
type GeneratorPosition = struct
Public Structure GeneratorPosition
继承
GeneratorPosition
属性

注解

此结构表示 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 的新实例。Initializes a new instance of GeneratorPosition with the specified index and offset.

属性

Index

获取或设置与已生成(已实现)的项相关的索引。Gets or sets the index that is relative to the generated (realized) items.

Offset

获取或设置与已索引项旁未生成(未实现)的项相关的偏移量。Gets or sets the offset that is relative to the ungenerated (unrealized) items near the indexed item.

方法

Equals(Object)

将指定实例与当前的 GeneratorPosition 实例比较值是否相等。Compares the specified instance and the current instance of GeneratorPosition for value equality.

GetHashCode()

返回此 GeneratorPosition 的哈希代码。Returns the hash code for this GeneratorPosition.

ToString()

返回此 GeneratorPosition 实例的字符串表示形式。Returns a string representation of this instance of GeneratorPosition.

运算符

Equality(GeneratorPosition, GeneratorPosition)

比较两个 GeneratorPosition 对象的值是否相等。Compares two GeneratorPosition objects for value equality.

Inequality(GeneratorPosition, GeneratorPosition)

比较两个 GeneratorPosition 对象的值是否相等。Compares two GeneratorPosition objects for value inequality.

适用于

另请参阅