Compartilhar via


Implementando o padrão de controle de tabela de automação de interface de usuário

Observação

Esta documentação destina.Os desenvolvedores do NET Framework que desejam usar o gerenciado UI Automation classes definidas na System.Windows.Automation namespace.As informações mais recentes sobre UI Automation, consulte API de automação do Windows: Automação da interface do usuário.

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 IgridProvider, 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 Mapeamento de Padrão de Controles para Clientes de Automação de IU.

Este tópico contém as seguintes seções.

  • Implementation Guidelines and Conventions
  • Required Members for ITableProvider
  • Exceptions
  • Tópicos relacionados

Implementation Guidelines and Conventions

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.

Observação

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.

Example of a Table with Complex Column Headers

Tabela com itens de cabeçalho complexos.

Example of a Table with Ambiguous RowOrColumnMajor Property

Tabela com propriedade RowOrColumnMajor ambígua.

Required Members for ITableProvider

The following properties and methods are required for the ITableProvider interface.

Required members

Member type

Notes

RowOrColumnMajor

Property

None

GetColumnHeaders

Method

None

GetRowHeaders

Method

None

This control pattern has no associated events.

Exceptions

This control pattern has no associated exceptions.

Consulte também

Tarefas

Support Control Patterns in a UI Automation Provider

Use Caching in UI Automation

Conceitos

Visão Geral de Padrões de Controle de Automação de Interface de Usuário

Padrões de Controle para Clientes de Automação de IU

Implementing the UI Automation TableItem Control Pattern

Implementando o Padrão Controle Grid de Automação de Interface de Usuário

Visão geral da árvore de automação de interface do usuário