IGridProvider 介面

定義

公開方法與屬性,以支援 Microsoft UI 自動化用戶端對做為子專案集合容器的控制項進行存取。 實作此介面,以支援自動化用戶端使用 GetPattern 呼叫和 PatternInterface.Grid要求的功能。

public interface class IGridProvider
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2338502560, 37676, 17552, 154, 19, 2, 253, 179, 154, 143, 91)]
struct IGridProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2338502560, 37676, 17552, 154, 19, 2, 253, 179, 154, 143, 91)]
public interface IGridProvider
Public Interface IGridProvider
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

此模式具有此處未完整記載的指導方針和慣例。 如需此模式用途的詳細資訊,請參閱 格線控制項模式

IGridProvider 不會由任何現有的自動化對等Windows 執行階段實作。 值得注意的是, Grid 配置容器或 GridView的 IGridProvider 不存在。 介面存在,因此自訂控制項作者可以在自訂控制項中支援自動化模式,並使用與用來定義控制項邏輯或其他自動化支援相同的Windows 執行階段 Managed 或 C++ API 來實作其自動化支援。

如果您想要在引發自動化事件或呼叫RaisePropertyChangedEvent時,從控制項程式碼參考 IGridProvider 模式屬性,請使用GridPatternIdentifiers

屬性

ColumnCount

取得方格中的資料行總數。

RowCount

取得方格的資料列總數。

方法

GetItem(Int32, Int32)

擷取指定儲存格的使用者介面自動化提供者。

適用於

另請參閱