Udostępnij za pośrednictwem


GeneratorPosition Struct

Definition

GeneratorPosition is used to describe the position of an item that is managed by ItemContainerGenerator.

public value class GeneratorPosition
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct GeneratorPosition
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct GeneratorPosition
Public Structure GeneratorPosition
Inheritance
GeneratorPosition
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Projection and members of GeneratorPosition

If you are using a Microsoft .NET language (C# or Microsoft Visual Basic), then GeneratorPosition has non-data members available, and its data members are exposed as read-write properties, not fields.

If you are programming with C++, then only the data member fields exist as members of GeneratorPosition, and you cannot use the utility methods or properties listed in the members table. C++ code can access similar utility methods that exist on the GeneratorPositionHelper class.

Fields

Index

The index that is relative to the generated (realized) items.

Offset

The offset that is relative to the ungenerated (unrealized) items near the indexed item.

Applies to