Implementing the UI Automation Table Control Pattern
This documentation is intended for .NET Framework developers who want to use the managed UI Automation classes defined in the System.Windows.Automation namespace. For the latest information about UI Automation, see Windows Automation API: UI Automation.
This topic introduces guidelines and conventions for implementing ITableProvider, including information about properties, methods, and events. Links to additional references are listed at the end of the overview.
The TablePattern control pattern is used to support controls that act as containers for a collection of child elements. The children of this element must implement ITableItemProvider and be organized in a two-dimensional logical coordinate system that can be traversed by row and column. This control pattern is analogous to , with the distinction that any control implementing ITableProvider must also expose a column and/or row header relationship for each child element. For examples of controls that implement this control pattern, see Control Pattern Mapping for UI Automation Clients.
This topic contains the following sections.
When implementing the Table control pattern, note the following guidelines and conventions:
Access to the content of individual cells is through a two-dimensional logical coordinate system or array provided by the required concurrent implementation of IGridProvider.
A column or row header can be contained within a table object or be a separate header object that is associated with a table object.
Column and row headers may include both a primary header as well as any supporting headers.
This concept becomes evident in a Microsoft Excel spreadsheet where a user has defined a "First name" column. This column now has two headers—the "First name" header defined by the user and the alphanumeric designation for that column assigned by the application.
See Implementing the UI Automation Grid Control Pattern for related grid functionality.