AutomationElement Classe
Définition
Représente un élément UI Automation de l’arborescence UI Automation et contient les valeurs utilisées comme identificateurs par les applications du client UI Automation.Represents a UI Automation element in the UI Automation tree, and contains values used as identifiers by UI Automation client applications.
public ref class AutomationElement sealed
public sealed class AutomationElement
type AutomationElement = class
Public NotInheritable Class AutomationElement
- Héritage
-
AutomationElement
Remarques
Une AutomationElement correspond à une partie de interface utilisateur (UI)user interface (UI) , indépendamment de l’implémentation sous-jacente (telle que Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) ou Win32Win32 ).An AutomationElement corresponds to a piece of interface utilisateur (UI)user interface (UI), regardless of underlying implementation (such as Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) or Win32Win32).
Champs
AcceleratorKeyProperty |
Identifie la propriété AcceleratorKey.Identifies the AcceleratorKey property. |
AccessKeyProperty |
Identifie la propriété AccessKey.Identifies the AccessKey property. |
AsyncContentLoadedEvent |
Identifie un événement déclenché pendant le chargement asynchrone d'un contenu.Identifies an event raised during asynchronous content-loading. |
AutomationFocusChangedEvent |
Identifie un événement qui est déclenché quand le focus a changé.Identifies an event that is raised when the focus has changed. |
AutomationIdProperty |
Identifie la propriété AutomationId, qui est utilisée pour identifier des éléments.Identifies the AutomationId property, which is used to identify elements. |
AutomationPropertyChangedEvent |
Identifie un événement de modification de propriété.Identifies a property-changed event. |
BoundingRectangleProperty |
Identifie la propriété BoundingRectangle.Identifies the BoundingRectangle property. |
ClassNameProperty |
Identifie la propriété ClassName.Identifies the ClassName property. |
ClickablePointProperty |
Identifie la propriété relative au point interactif.Identifies the clickable point property. |
ControlTypeProperty |
Identifie la propriété ControlType.Identifies the ControlType property. |
CultureProperty |
Identifie la propriété relative à la culture.Identifies the culture property. |
FrameworkIdProperty |
Identifie la propriété FrameworkId.Identifies the FrameworkId property. |
HasKeyboardFocusProperty |
Identifie la propriété HasKeyboardFocus.Identifies the HasKeyboardFocus property. |
HelpTextProperty |
Identifie la propriété HelpText.Identifies the HelpText property. |
IsContentElementProperty |
Identifie la propriété IsContentElement.Identifies the IsContentElement property. |
IsControlElementProperty |
Identifie la propriété IsControlElement.Identifies the IsControlElement property. |
IsDockPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle DockPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the DockPattern control pattern is available on this AutomationElement. |
IsEnabledProperty |
Identifie la propriété IsEnabled qui spécifie si l'élément d'interface utilisateur (UI)user interface (UI) référencé par AutomationElement est activé.Identifies the IsEnabled property, which specifies whether the interface utilisateur (UI)user interface (UI) item referenced by the AutomationElement is enabled. |
IsExpandCollapsePatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle ExpandCollapsePattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the ExpandCollapsePattern control pattern is available on this AutomationElement. |
IsGridItemPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle GridItemPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the GridItemPattern control pattern is available on this AutomationElement. |
IsGridPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle GridPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the GridPattern control pattern is available on this AutomationElement. |
IsInvokePatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle InvokePattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the InvokePattern control pattern is available on this AutomationElement. |
IsItemContainerPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle ItemContainerPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the ItemContainerPattern control pattern is available on this AutomationElement. |
IsKeyboardFocusableProperty |
Identifie la propriété IsKeyboardFocusable.Identifies the IsKeyboardFocusable property. |
IsMultipleViewPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle MultipleViewPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the MultipleViewPattern control pattern is available on this AutomationElement. |
IsOffscreenProperty |
Identifie la propriété IsOffscreen, qui indique si l'élément d'interface utilisateur (UI)user interface (UI) est visible à l'écran.Identifies the IsOffscreen property, which indicates whether the interface utilisateur (UI)user interface (UI) item is visible on the screen. |
IsPasswordProperty |
Identifie la propriété IsPassword.Identifies the IsPassword property. |
IsRangeValuePatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle RangeValuePattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the RangeValuePattern control pattern is available on this AutomationElement. |
IsRequiredForFormProperty |
Identifie la propriété IsRequiredForForm.Identifies the IsRequiredForForm property. |
IsScrollItemPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle ScrollItemPattern est disponible pour ce AutomationElement.Identifies the property that indicates whether the ScrollItemPattern control pattern is available for this AutomationElement. |
IsScrollPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle ScrollPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the ScrollPattern control pattern is available on this AutomationElement. |
IsSelectionItemPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle SelectionItemPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the SelectionItemPattern control pattern is available on this AutomationElement. |
IsSelectionPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle SelectionPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the SelectionPattern control pattern is available on this AutomationElement. |
IsSynchronizedInputPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle SynchronizedInputPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the SynchronizedInputPattern control pattern is available on this AutomationElement. |
IsTableItemPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle TableItemPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the TableItemPattern control pattern is available on this AutomationElement. |
IsTablePatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle TablePattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the TablePattern control pattern is available on this AutomationElement. |
IsTextPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle TextPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the TextPattern control pattern is available on this AutomationElement. |
IsTogglePatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle TogglePattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the TogglePattern control pattern is available on this AutomationElement. |
IsTransformPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle TransformPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the TransformPattern control pattern is available on this AutomationElement. |
IsValuePatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle ValuePattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the ValuePattern control pattern is available on this AutomationElement. |
IsVirtualizedItemPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle VirtualizedItemPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the VirtualizedItemPattern control pattern is available on this AutomationElement. |
IsWindowPatternAvailableProperty |
Identifie la propriété qui indique si le modèle de contrôle WindowPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the WindowPattern control pattern is available on this AutomationElement. |
ItemStatusProperty |
Identifie la propriété ItemStatus, qui spécifie l'état de la représentation visuelle d'un élément complexe.Identifies the ItemStatus property, which specifies the status of the visual representation of a complex item. |
ItemTypeProperty |
Identifie la propriété ItemType.Identifies the ItemType property. |
LabeledByProperty |
Identifie la propriété LabeledBy, qui identifie l'étiquette associée à un contrôle.Identifies the LabeledBy property, which identifies the label associated with a control. |
LayoutInvalidatedEvent |
Identifie l'événement qui est déclenché quand la disposition est invalidée.Identifies the event that is raised when the layout is invalidated. |
LocalizedControlTypeProperty |
Identifie la propriété LocalizedControlType dans la langue locale.Identifies the LocalizedControlType property in the local language. |
MenuClosedEvent |
Identifie l'événement qui est déclenché quand un menu est fermé.Identifies the event that is raised when a menu is closed. |
MenuOpenedEvent |
Identifie l'événement qui est déclenché quand un menu est ouvert.Identifies the event that is raised when a menu is opened. |
NameProperty | |
NativeWindowHandleProperty |
Identifie la propriété NativeWindowHandle.Identifies the NativeWindowHandle property. |
NotSupported |
Indique qu'une propriété n'est pas prise en charge.Indicates that a property is not supported. |
OrientationProperty |
Identifie la propriété Orientation.Identifies the Orientation property. |
PositionInSetProperty |
Décrit l’emplacement ordinal d’un élément d’automation au sein d’un ensemble d’éléments qui sont considérés comme des frères.Describes the ordinal location of an automation element within a set of elements that are considered to be siblings. |
ProcessIdProperty |
Identifie la propriété ProcessId.Identifies the ProcessId property. |
RuntimeIdProperty |
Identifie la propriété qui contient l'identificateur d'exécution de l'élément.Identifies the property that contains the runtime identifier of the element. |
SizeOfSetProperty |
Décrit le nombre d’éléments d’automation dans un groupe ou un ensemble qui sont considérés comme des frères.Describes the count of automation elements in a group or set that are considered to be siblings. |
StructureChangedEvent |
Identifie l’événement qui est déclenché quand l’arborescence Automatisation de l’interface utilisateurUI Automation est modifiée.Identifies the event that is raised when the Automatisation de l’interface utilisateurUI Automation tree structure is changed. |
ToolTipClosedEvent |
Identifie l'événement qui est déclenché quand une info-bulle est fermée.Identifies the event that is raised when a tooltip is closed. |
ToolTipOpenedEvent |
Identifie l'événement qui est déclenché quand une info-bulle est ouverte.Identifies the event that is raised when a tooltip is opened. |
Propriétés
Cached |
Obtient les valeurs de propriétés Automatisation de l’interface utilisateurUI Automation mises en cache pour cet objet AutomationElement.Gets the cached Automatisation de l’interface utilisateurUI Automation property values for this AutomationElement object. |
CachedChildren |
Obtient les éléments enfants mis en cache de ce AutomationElement.Gets the cached child elements of this AutomationElement. |
CachedParent |
Obtient le parent mis en cache de ce AutomationElement.Gets the cached parent of this AutomationElement. |
Current |
Obtient les valeurs de propriétés actuelles de AutomationElement.Gets the current property values of the AutomationElement. |
FocusedElement |
Obtient le AutomationElement qui a actuellement le focus.Gets the AutomationElement that currently has focus. |
RootElement |
Obtient le AutomationElement racine du bureau actuel.Gets the root AutomationElement for the current desktop. |
Méthodes
Equals(Object) |
Détermine si le AutomationElement spécifié a la même valeur que ce AutomationElement.Determines whether the specified AutomationElement has the same value as this AutomationElement. |
Finalize() |
Autorise un objet à tenter de libérer des ressources et à exécuter d'autres opérations de nettoyage avant qu'il ne soit récupéré par une opération garbage collection.Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
FindAll(TreeScope, Condition) |
Retourne tous les objets AutomationElement qui satisfont la condition spécifiée.Returns all AutomationElement objects that satisfy the specified condition. |
FindFirst(TreeScope, Condition) |
Retourne le premier élément enfant ou descendant qui correspond à la condition spécifiée.Returns the first child or descendant element that matches the specified condition. |
FromHandle(IntPtr) |
Récupère un nouvel objet AutomationElement pour l'élément d'interface utilisateur (UI)user interface (UI) référencé par le handle de fenêtre spécifié.Retrieves a new AutomationElement object for the interface utilisateur (UI)user interface (UI) item referenced by the specified window handle. |
FromLocalProvider(IRawElementProviderSimple) |
Récupère un nouvel objet AutomationElement à partir d'une implémentation IRawElementProviderSimple locale.Retrieves a new AutomationElement object from a local IRawElementProviderSimple implementation. |
FromPoint(Point) |
Récupère un nouvel objet AutomationElement pour l'élément d'interface utilisateur (UI)user interface (UI) à l'emplacement spécifié sur le bureau.Retrieves a new AutomationElement object for the interface utilisateur (UI)user interface (UI) item at specified point on the desktop. |
GetCachedPattern(AutomationPattern) |
Récupère le modèle spécifié à partir du cache de ce AutomationElement.Retrieves the specified pattern from the cache of this AutomationElement. |
GetCachedPropertyValue(AutomationProperty) |
Récupère la valeur de la propriété spécifiée à partir du cache de ce AutomationElement.Retrieves the value of the specified property from the cache of this AutomationElement. Une valeur par défaut appropriée pour le type de propriété est retournée pour les propriétés qui ne sont pas explicitement prises en charge par l'élément d'interface utilisateur (UI)user interface (UI) cible.An appropriate default value for the property type is returned for properties not explicitly supported by the target interface utilisateur (UI)user interface (UI) element. |
GetCachedPropertyValue(AutomationProperty, Boolean) |
Récupère la valeur de la propriété spécifiée à partir du cache de ce AutomationElement, en ignorant éventuellement toute propriété par défaut.Retrieves the value of the specified property from the cache of this AutomationElement, optionally ignoring any default property. |
GetClickablePoint() |
Récupère un point du AutomationElement sur lequel l'utilisateur peut cliquer.Retrieves a point on the AutomationElement that can be clicked. |
GetCurrentPattern(AutomationPattern) |
Récupère l’objet de modèle spécifié sur ce AutomationElement.Retrieves the specified pattern object on this AutomationElement. |
GetCurrentPropertyValue(AutomationProperty) |
Récupère la valeur de la propriété spécifiée sur ce AutomationElement.Retrieves the value of the specified property on this AutomationElement. Une valeur par défaut appropriée pour le type de propriété est retournée pour les propriétés qui ne sont pas explicitement prises en charge par l'élément d'interface utilisateur (UI)user interface (UI) cible.An appropriate default value for the property type is returned for properties not explicitly supported by the target interface utilisateur (UI)user interface (UI) element. |
GetCurrentPropertyValue(AutomationProperty, Boolean) |
Récupère la valeur de la propriété spécifiée sur ce AutomationElement, en ignorant éventuellement toute propriété par défaut.Retrieves the value of the specified property on this AutomationElement, optionally ignoring any default property. |
GetHashCode() |
Récupère le code de hachage de ce AutomationElement.Retrieves the hash code for this AutomationElement. |
GetRuntimeId() |
Récupère l'identificateur unique assigné à l'élément d'interface utilisateur (UI)user interface (UI).Retrieves the unique identifier assigned to the interface utilisateur (UI)user interface (UI) item. |
GetSupportedPatterns() |
Récupère les modèles de contrôle que ce AutomationElement prend en charge.Retrieves the control patterns that this AutomationElement supports. |
GetSupportedProperties() |
Récupère les identificateurs de propriétés pris en charge par l'élément.Retrieves the identifiers of properties supported by the element. |
GetType() |
Obtient le Type de l'instance actuelle.Gets the Type of the current instance. (Hérité de Object) |
GetUpdatedCache(CacheRequest) |
Récupère un nouveau AutomationElement avec un cache mis à jour.Retrieves a new AutomationElement with an updated cache. |
MemberwiseClone() |
Crée une copie superficielle du Object actuel.Creates a shallow copy of the current Object. (Hérité de Object) |
SetFocus() |
Définit le focus sur AutomationElement.Sets focus on the AutomationElement. |
ToString() |
Retourne une chaîne qui représente l'objet actuel.Returns a string that represents the current object. (Hérité de Object) |
TryGetCachedPattern(AutomationPattern, Object) |
Récupère un modèle de contrôle du cache.Retrieves a control pattern from the cache. |
TryGetClickablePoint(Point) |
Récupère un point de l'élément sur lequel l'utilisateur peut cliquer.Retrieves a point within the element that can be clicked. |
TryGetCurrentPattern(AutomationPattern, Object) |
Récupère un objet qui implémente un modèle de contrôle.Retrieves an object that implements a control pattern. |
Opérateurs
Equality(AutomationElement, AutomationElement) |
Retourne une valeur indiquant si les objets AutomationElement spécifiés font référence au même élément d'interface utilisateur (UI)user interface (UI).Returns a value indicating whether the specified AutomationElement objects refer to the same interface utilisateur (UI)user interface (UI) element. |
Inequality(AutomationElement, AutomationElement) |
Retourne une valeur indiquant si les objets AutomationElement spécifiés font référence à des éléments d'interface utilisateur (UI)user interface (UI) différents.Returns a value indicating whether the specified AutomationElement objects refer to different interface utilisateur (UI)user interface (UI) elements. |