IGridItemProvider
IGridItemProvider
IGridItemProvider
IGridItemProvider
Interface
Definition
Exposes methods and properties to support access by a Microsoft UI Automation client to individual child controls of containers that implement IGridProvider. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.GridItem.
public : interface IGridItemProviderpublic interface IGridItemProviderPublic Interface IGridItemProvider// This API is not available in Javascript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see GridItem Control Pattern.
IGridItemProvider isn't implemented by any existing Windows Runtime automation peers. Notably, IGridItemProvider doesn't exist for the elements contained in a Grid and using the Grid as a layout container, or for GridViewItem. The interface exists so that custom control authors can support the automation pattern in a custom control, and implement their automation support using the same Windows Runtime managed or C++ API as they use to define control logic or other automation support.
Use GridItemPatternIdentifiers if you want to reference the IGridItemProvider pattern properties from control code when you fire automation events or call RaisePropertyChangedEvent.
Properties
Column Column Column Column
Gets the ordinal number of the column that contains the cell or item.
public : int Column { get; }public int Column { get; }Public ReadOnly Property Column As int// This API is not available in Javascript.
- Value
- int int int int
A zero-based ordinal number that identifies the column that contains the cell or item.
ColumnSpan ColumnSpan ColumnSpan ColumnSpan
Gets the number of columns that are spanned by a cell or item.
public : int ColumnSpan { get; }public int ColumnSpan { get; }Public ReadOnly Property ColumnSpan As int// This API is not available in Javascript.
- Value
- int int int int
The number of columns.
ContainingGrid ContainingGrid ContainingGrid ContainingGrid
Gets a UI Automation provider that implements IGridProvider and that represents the container of the cell or item.
public : IRawElementProviderSimple ContainingGrid { get; }public IRawElementProviderSimple ContainingGrid { get; }Public ReadOnly Property ContainingGrid As IRawElementProviderSimple// This API is not available in Javascript.
- Value
- IRawElementProviderSimple IRawElementProviderSimple IRawElementProviderSimple IRawElementProviderSimple
A UI Automation provider that implements the Grid control pattern and that represents the cell or item container.
Row Row Row Row
Gets the ordinal number of the row that contains the cell or item.
public : int Row { get; }public int Row { get; }Public ReadOnly Property Row As int// This API is not available in Javascript.
- Value
- int int int int
A zero-based ordinal number that identifies the row that contains the cell or item.