UI Automation Support for the Document Control Type
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 documento 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.
Document controls let a user view and manipulate multiple pages of text. Ao contrário dos controles de edição que suportam apenas uma simple linha de texto não formatado, controles de documento podem hospedar o texto que o estilo abundante e formatado.
The following sections define the required UI Automation tree structure, properties, control patterns, and events for the Document control type. The UI Automation requirements apply to all document 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 document controls and describes what can be contained in each view. For more information about the UI Automation tree, see Visão geral da árvore de automação de interface do usuário.
Control View |
Content View |
---|---|
Document
|
Document
|
Required UI Automation Properties
The following table lists the UI Automation properties whose value or definition is especially relevant to document 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. |
The document has a clickable point that will cause the document of one of its elements in the document container to have focus. |
|
Document |
This value is the same for all UI frameworks. |
|
True |
The document control is always included in the content view of the UI Automation tree. |
|
True |
The document 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. |
The value of this property should be the label of the document control. Typically, the title of the document is used. |
|
"document" |
Localized string corresponding to the Document control type. |
|
See notes. |
The document control typically gets its names from the file name it is loaded from. This is often displayed in a containing window or frame title. |
Required UI Automation Control Patterns
The following table lists the UI Automation control patterns required to be supported by document controls. For more information about control patterns, see Visão Geral de Padrões de Controle de Automação de Interface de Usuário.
Padrão de controle |
Support |
Notes |
---|---|---|
Depends |
O controle de documento pode abranger maior do que se estendem por dessa porta. O controle deve suportar o padrão de controle de rolagem se o conteúdo for rolável. |
|
Required |
O controle de documento pode abranger maior do que se estendem por dessa porta. O controle deve suportar o padrão de controle de rolagem se o conteúdo for rolável. |
|
Never |
The document control does not support this control pattern because the contents of the control often span more than one page. UI Automation clients should use TextPattern to obtain text information about a document. |
Required UI Automation Events
The following table lists the UI Automation events required to be supported by all document controls. For more information about events, see Visão geral sobre eventos de automação de interface do usuário.
UI Automation Event |
Support |
Notes |
---|---|---|
Required |
None |
|
BoundingRectangleProperty property-changed event. |
Required |
None |
IsEnabledProperty property-changed event. |
Required |
None |
IsOffscreenProperty property-changed event. |
Required |
None |
Required |
None |
|
HorizontallyScrollableProperty property-changed event. |
Required |
None |
HorizontalScrollPercentProperty property-changed event. |
Required |
None |
HorizontalViewSizeProperty property-changed event. |
Required |
None |
VerticalScrollPercentProperty property-changed event. |
Required |
None |
VerticallyScrollableProperty property-changed event. |
Required |
None |
VerticalViewSizeProperty property-changed event. |
Required |
None |
Depends |
If the control supports the Selection control pattern, it must support this event. |
|
Required |
None |
|
Required |
None |
|
ValueProperty property-changed event. |
Never |
None |
Consulte também
Referência
Conceitos
Visão Geral dos Tipos de Controle de Automação de Interface do Usuário