GeneratorPosition 結構

定義

GeneratorPosition 可用來描述 ItemContainerGenerator 所管理之專案的位置。

public value class GeneratorPosition
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
struct GeneratorPosition
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public struct GeneratorPosition
Public Structure GeneratorPosition
繼承
GeneratorPosition
屬性

備註

GeneratorPosition 的投影和成員

如果您使用 Microsoft .NET 語言 (C# 或 Microsoft Visual Basic) ,則 GeneratorPosition 有可用的非數據成員,而且其數據成員會公開為讀寫屬性,而不是欄位。

如果您是使用 C++ 進行程式設計,則只有數據成員欄位會以 GeneratorPosition 的成員的形式存在,而且您無法使用成員數據表中列出的公用程式方法或屬性。 C++ 程式代碼可以存取 GeneratorPositionHelper 類別上存在的類似公用程式方法。

欄位

Index

相對於所產生 (實現) 專案的索引。

Offset

相對於未產生 (未實作) 專案接近索引專案的位移。

適用於