Suporte a Automação de Interface de Usuário para o Tipo de Controle Tree
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.
Este tópico fornece informações sobre UI Automation suporte para a árvore de o tipo de controle. In UI Automation, a control type is a set of conditions that a control must meet in order to use the ControlTypeProperty property. As condições incluem as diretrizes específicas para UI Automation estrutura de árvore, UI Automation valores de propriedade e padrões de controle.
The Tree control type is used for containers whose contents have relevance as a hierarchy of nodes, as with the way files and folders are displayed in the left pane of Microsoft Windows Explorer. Each node has the potential to contain other nodes, called child nodes. Parent nodes, or nodes that contain child nodes, can be displayed as expanded or collapsed.
The following sections define the required UI Automation tree structure, properties, control patterns, and events for the Tree control type. The UI Automation requirements apply to all tree controls, whether Windows Presentation Foundation (WPF), Win32, or Windows Forms.
Este tópico contém as seguintes seções.
- Required UI Automation Tree Structure
- Required UI Automation Properties
- Required UI Automation Control Patterns
- Required UI Automation Events
- Tópicos relacionados
Required UI Automation Tree Structure
The following table depicts the control view and the content view of the UI Automation tree that pertains to tree controls and describes what can be contained in each view. For more information on the UI Automation tree, see Visão geral da árvore de automação de interface do usuário.
Control View |
Content View |
---|---|
Tree
|
Tree
|
The control view of the UI Automation tree consists of:
Zero para muitos itens dentro do contêiner (os itens podem ser baseados em Item da árvore, o Item de dados ou outro tipo de controle).
Zero, one or two scroll bars.
O modo de exibição de conteúdo da UI Automation árvore consiste em itens de zero ou muitos dentro do contêiner (os itens podem ser baseados em Item da árvore, o Item de dados ou outro tipo de controle).
Required UI Automation Properties
The following table lists the UI Automation properties whose value or definition is especially relevant to list controls. Para obter mais informações sobre UI Automation Propriedades, consulte UI Automation Properties for Clients.
UI Automation Property |
Value |
Notes |
---|---|---|
See notes. |
The value of this property needs to be unique across all controls in an application. |
|
See notes. |
The outermost rectangle that contains the whole control. |
|
See notes. |
Tree controls have a clickable point that will cause the tree or one the items in the tree container to have the focus set on them. You get a clickable point for a tree only if you can click somewhere that doesn't cause one of the items to be selected/get focus. |
|
Tree |
This value is the same for all UI frameworks. |
|
True |
The tree control is always included in the content view of the UI Automation tree. |
|
True |
The tree control is always included in the control view of the UI Automation tree. |
|
See notes. |
If the control can receive keyboard focus, it must support this property. |
|
See notes. |
If the tree control has a label associated with it, this property will return an AutomationElement for that label. Otherwise, the property will return a null reference (Nothing in Microsoft Visual Basic .NET). |
|
"tree" |
Localized string corresponding to the List control type. |
|
See notes. |
The value of a tree control's name property usually comes from text that labels the control. If there is no text label, then the application developer must provide a value for this property. |
Required UI Automation Control Patterns
The following table lists the UI Automation control patterns required to be supported by list controls. For more information on control patterns, see Visão Geral de Padrões de Controle de Automação de Interface de Usuário.
Control Pattern/Pattern Property |
Support/Value |
Notes |
---|---|---|
Depends |
Tree controls that contain a set of selectable items must implement this control pattern. This control pattern does not have to be implemented if selecting an item does not convey meaningful information to the user. |
|
See notes. |
Implement this property if the tree control supports multiple selection (most tree controls do not support multiple selection). |
|
See notes. |
The value of this property is exposed if the control requires that an item be selected. |
|
Depends |
Implement this control pattern if the contents of the tree container can be scrolled. |
Required UI Automation Events
The following table lists the UI Automation events required to be supported by all tree controls. For more information on events, see Visão geral sobre eventos de automação de interface do usuário.
UI Automation Event |
Support |
Notes |
---|---|---|
Depends |
None |
|
BoundingRectangleProperty property-changed event. |
Required |
None |
IsOffscreenProperty property-changed event. |
Required |
None |
IsEnabledProperty property-changed event. |
Required |
None |
HorizontallyScrollableProperty property-changed event. |
Depends |
None |
HorizontalScrollPercentProperty property-changed event. |
Depends |
None |
HorizontalViewSizeProperty property-changed event. |
Depends |
None |
VerticalScrollPercentProperty property-changed event. |
Depends |
None |
VerticallyScrollableProperty property-changed event. |
Depends |
None |
VerticalViewSizeProperty property-changed event. |
Depends |
None |
Required |
None |
|
Required |
None |
Consulte também
Referência
Conceitos
Visão Geral dos Tipos de Controle de Automação de Interface do Usuário