Compartilhar via


Implementando o Padrão Controle de GridItem 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 IGridItemProvider, including information about properties. Links to additional references are listed at the end of the overview.

The GridItemPattern control pattern is used to support individual child controls of containers that implement IGridProvider. 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 IGridItemProvider
  • Exceptions
  • Tópicos relacionados

Implementation Guidelines and Conventions

When implementing IGridProvider, note the following guidelines and conventions:

  • Grid coordinates are zero-based with the upper left cell having coordinates (0, 0).

  • Merged cells will report their Row and Column properties based on their underlying anchor cell as defined by the UI Automation provider. Typically, it will be the topmost and leftmost row or column.

  • IGridItemProvider does not provide for active manipulation of the grid such as merging or splitting cells.

  • Controls that implement IGridItemProvider can typically be traversed (that is, a UI Automation client can move to adjacent controls) by using the keyboard.

Required Members for IGridItemProvider

The following properties and methods are required for implementing IGridItemProvider.

Required members

Member type

Notes

Row

Property

None

Column

Property

None

RowSpan

Property

None

ColumnSpan

Property

None

ContainingGrid

Property

None

This control pattern has no associated methods or 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

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