Share via


IGridProvider Interface

Definition

Exposes methods and properties to support access by a Microsoft UI Automation client to controls that act as containers for a collection of child elements. Implement this interface in order to support the capabilities that an automation client requests with a AutomationPeer.GetPattern call and PatternInterface.Grid.

public interface class IGridProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1352215902, 53797, 22249, 162, 90, 120, 195, 114, 232, 25, 85)]
struct IGridProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(1352215902, 53797, 22249, 162, 90, 120, 195, 114, 232, 25, 85)]
public interface IGridProvider
Public Interface IGridProvider
Attributes

Remarks

This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see Grid Control Pattern.

IGridProvider isn't implemented by any existing Windows Runtime automation peers. Notably, IGridProvider doesn't exist for the Grid layout container, or for GridView. 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 GridPatternIdentifiers if you want to reference the IGridProvider pattern properties from control code when you fire automation events or call AutomationPeer.RaisePropertyChangedEvent.

Properties

ColumnCount

Gets the total number of columns in a grid.

RowCount

Gets the total number of rows in a grid.

Methods

GetItem(Int32, Int32)

Retrieves the UI Automation provider for the specified cell.

Applies to

See also