GeneratorPosition structure

Applies to Windows and Windows Phone

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

Syntax


public struct GeneratorPosition

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The GeneratorPosition structure has these types of members:

Constructors

The GeneratorPosition structure has these constructors.

ConstructorDescription
GeneratorPosition [C#, VB]Initializes a new instance of GeneratorPosition with the specified index and offset.

 

Fields

The GeneratorPosition structure has these fields.

FieldData typeDescription
Index [C++]

System.Int32 [.NET] | int32 [C++]

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

Offset [C++]

System.Int32 [.NET] | int32 [C++]

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

 

Methods

The GeneratorPosition structure has these methods. It also inherits methods from the Object class.

MethodDescription
Equals [C#, VB]Determines whether the specified object is equal to a GeneratorPosition.
GetHashCode [C#, VB]Gets a hash code for this object.
ToString [C#, VB]Converts a GeneratorPosition to a String representation.

 

Operators

The GeneratorPosition structure has these operators.

OperatorDescription
Equality Compares two GeneratorPosition structures for equality.
Inequality Compares two GeneratorPosition structures for inequality.

 

Properties

The GeneratorPosition structure has these properties.

PropertyAccess typeDescription

Index [C#, VB]

Read/writeGets or sets the Int32 index that is relative to the generated (realized) items.

Offset [C#, VB]

Read/writeGets or sets the Int32 offset that is relative to the ungenerated (unrealized) items near the indexed item.

 

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls.Primitives
Windows::UI::Xaml::Controls::Primitives [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft. All rights reserved.