Suporte de Automação de Interface de Usuário para o Tipo de Controle ProgressBar
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 o ProgressBar 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, os padrões de controle, e UI Automation eventos.
Progress bar controls are an example of controls that implement the ProgressBar control type. Progress bar controls are used to indicate the progress of a lengthy operation. The control consists of a rectangle that is gradually filled with the system highlight color as an operation progresses.
The following sections define the required UI Automation tree structure, properties, control patterns, and events for the ProgressBar control type. The UI Automation requirements apply to all list 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
- Padrões de controle de automação de interface do usuário e as propriedades necessárias
- 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 progress bar 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 |
---|---|
ProgressBar |
ProgressBar |
The progress bar controls do not have any children in the control or content view of the UI Automation tree.
Required UI Automation Properties
The following table lists the UI Automation properties whose value or definition is especially relevant to progress bar controls. For more information on UI Automation properties, see 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. |
Supported if there is a bounding rectangle. If not every point within the bounding rectangle is clickable, and you perform specialized hit testing, then override and provide a clickable point. |
|
See notes. |
If the control can receive keyboard focus, it must support this property. |
|
See notes. |
The progress bar control typically gets its name from a static text label. If there is not a static text label the application developer must expose a value for the Name property. |
|
See notes. |
If there is a static text label then this property must expose a reference to that control. |
|
ProgressBar |
This value is the same for all UI frameworks. |
|
"progress bar" |
Localized string corresponding to the ProgressBar control type. |
|
True |
The progress bar control is always included in the content view of the UI Automation tree. |
|
True |
The progress bar control is always included in the control view of the UI Automation tree. |
Padrões de controle de automação de interface do usuário e as propriedades necessárias
The following table lists the UI Automation control patterns required to be supported by progress bar 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 |
Progress bar controls that give a textual indication of progress must implement IValueProvider. |
|
True |
The value for this property is always True. |
|
See notes. |
This property exposes textual progress of a progress bar control. |
|
Depends |
Progress bar controls that take a numeric range must implement IRangeValueProvider |
|
0.0 |
O valor desta propriedade é o menor valor que o controle pode ser definido como. |
|
100.0 |
O valor desta propriedade é o maior valor que o controle pode ser definido como. |
|
NaN |
This property is not required because progress bar controls are read-only. |
|
NaN |
This property is not required because progress bar controls are read-only. |
Required UI Automation Events
The following table lists the UI Automation events required to be supported by all progress bar 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 |
---|---|---|
BoundingRectangleProperty property-changed event. |
Required |
None |
IsOffscreenProperty property-changed event. |
Required |
None |
IsEnabledProperty property-changed event. |
Required |
None |
NameProperty property-changed event. |
Required |
None |
ValueProperty 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