AutomationElement Klasse

Definition

Stellt ein Benutzeroberflächenautomatisierung-Element in der Benutzeroberflächenautomatisierung-Struktur dar und enthält Werte, die von Benutzeroberflächenautomatisierung Clientanwendungen als Bezeichner verwendet werden.

public ref class AutomationElement sealed
public sealed class AutomationElement
type AutomationElement = class
Public NotInheritable Class AutomationElement
Vererbung
AutomationElement

Hinweise

Ein AutomationElement entspricht einem Teil der Benutzeroberfläche , unabhängig von der zugrunde liegenden Implementierung (z. B. Windows Presentation Foundation (WPF) oder Win32).

Felder

Name Beschreibung
AcceleratorKeyProperty

Identifies the AcceleratorKey property.

AccessKeyProperty

Identifies the AccessKey property.

ActiveTextPositionChangedEvent

Ereignis-ID: ActiveTextPositionChanged – Gibt an, dass sich die aktive Position innerhalb eines Textelements geändert hat.

AsyncContentLoadedEvent

Identifiziert ein Ereignis, das beim asynchronen Laden von Inhalten ausgelöst wird.

AutomationFocusChangedEvent

Identifiziert ein Ereignis, das ausgelöst wird, wenn sich der Fokus geändert hat.

AutomationIdProperty

Identifiziert die AutomationId Eigenschaft, die zum Identifizieren von Elementen verwendet wird.

AutomationPropertyChangedEvent

Identifiziert ein Eigenschaftsänderungsereignis.

BoundingRectangleProperty

Identifies the BoundingRectangle property.

ClassNameProperty

Identifies the ClassName property.

ClickablePointProperty

Identifies the clickable point property.

ControlTypeProperty

Identifies the ControlType property.

CultureProperty

Identifies the culture property.

FrameworkIdProperty

Identifies the FrameworkId property.

HasKeyboardFocusProperty

Identifies the HasKeyboardFocus property.

HeadingLevelProperty

Eigenschafts-ID: HeadingLevel – Beschreibt die Überschriftenebene eines Elements.

HelpTextProperty

Identifies the HelpText property.

IsContentElementProperty

Identifies the IsContentElement property.

IsControlElementProperty

Identifies the IsControlElement property.

IsDialogProperty

Eigenschafts-ID: IsDialog – Gibt an, ob das Automatisierungselement ein Dialogfeld ist.

IsDockPatternAvailableProperty

Identifies the property that indicates whether the DockPattern control pattern is available on this AutomationElement.

IsEnabledProperty

Identifies the IsEnabled property, which specifies whether the user interface (UI) item referenced by the AutomationElement is enabled.

IsExpandCollapsePatternAvailableProperty

Identifies the property that indicates whether the ExpandCollapsePattern control pattern is available on this AutomationElement.

IsGridItemPatternAvailableProperty

Identifies the property that indicates whether the GridItemPattern control pattern is available on this AutomationElement.

IsGridPatternAvailableProperty

Identifies the property that indicates whether the GridPattern control pattern is available on this AutomationElement.

IsInvokePatternAvailableProperty

Identifies the property that indicates whether the InvokePattern control pattern is available on this AutomationElement.

IsItemContainerPatternAvailableProperty

Identifies the property that indicates whether the ItemContainerPattern control pattern is available on this AutomationElement.

IsKeyboardFocusableProperty

Identifies the IsKeyboardFocusable property.

IsMultipleViewPatternAvailableProperty

Identifies the property that indicates whether the MultipleViewPattern control pattern is available on this AutomationElement.

IsOffscreenProperty

Identifies the IsOffscreen property, which indicates whether the user interface (UI) item is visible on the screen.

IsPasswordProperty

Identifies the IsPassword property.

IsRangeValuePatternAvailableProperty

Identifies the property that indicates whether the RangeValuePattern control pattern is available on this AutomationElement.

IsRequiredForFormProperty

Identifies the IsRequiredForForm property.

IsScrollItemPatternAvailableProperty

Identifies the property that indicates whether the ScrollItemPattern control pattern is available for this AutomationElement.

IsScrollPatternAvailableProperty

Identifies the property that indicates whether the ScrollPattern control pattern is available on this AutomationElement.

IsSelectionItemPatternAvailableProperty

Identifies the property that indicates whether the SelectionItemPattern control pattern is available on this AutomationElement.

IsSelectionPatternAvailableProperty

Identifies the property that indicates whether the SelectionPattern control pattern is available on this AutomationElement.

IsSynchronizedInputPatternAvailableProperty

Identifies the property that indicates whether the SynchronizedInputPattern control pattern is available on this AutomationElement.

IsTableItemPatternAvailableProperty

Identifies the property that indicates whether the TableItemPattern control pattern is available on this AutomationElement.

IsTablePatternAvailableProperty

Identifies the property that indicates whether the TablePattern control pattern is available on this AutomationElement.

IsTextPatternAvailableProperty

Identifies the property that indicates whether the TextPattern control pattern is available on this AutomationElement.

IsTogglePatternAvailableProperty

Identifies the property that indicates whether the TogglePattern control pattern is available on this AutomationElement.

IsTransformPatternAvailableProperty

Identifies the property that indicates whether the TransformPattern control pattern is available on this AutomationElement.

IsValuePatternAvailableProperty

Identifies the property that indicates whether the ValuePattern control pattern is available on this AutomationElement.

IsVirtualizedItemPatternAvailableProperty

Identifies the property that indicates whether the VirtualizedItemPattern control pattern is available on this AutomationElement.

IsWindowPatternAvailableProperty

Identifies the property that indicates whether the WindowPattern control pattern is available on this AutomationElement.

ItemStatusProperty

Identifiziert die ItemStatus Eigenschaft, die den Status der visuellen Darstellung eines komplexen Elements angibt.

ItemTypeProperty

Identifies the ItemType property.

LabeledByProperty

Identifies the LabeledBy property, which identifies the label associated with a control.

LayoutInvalidatedEvent

Gibt das Ereignis an, das ausgelöst wird, wenn das Layout ungültig ist.

LocalizedControlTypeProperty

Identifiziert die LocalizedControlType Eigenschaft in der lokalen Sprache.

MenuClosedEvent

Gibt das Ereignis an, das ausgelöst wird, wenn ein Menü geschlossen wird.

MenuOpenedEvent

Identifiziert das Ereignis, das beim Öffnen eines Menüs ausgelöst wird.

NameProperty

Identifies the Name property.

NativeWindowHandleProperty

Identifies the NativeWindowHandle property.

NotificationEvent

Ereignis-ID: Benachrichtigung – wird hauptsächlich von Servern zum Auslösen einer generischen Benachrichtigung verwendet.

NotSupported

Gibt an, dass eine Eigenschaft nicht unterstützt wird.

OrientationProperty

Identifies the Orientation property.

PositionInSetProperty

Beschreibt die Ordnungsposition eines Automatisierungselements innerhalb einer Gruppe von Elementen, die als gleichgeordnet eingestuft werden.

ProcessIdProperty

Identifies the ProcessId property.

RuntimeIdProperty

Identifiziert die Eigenschaft, die den Laufzeitbezeichner des Elements enthält.

SizeOfSetProperty

Beschreibt die Anzahl der Automatisierungselemente in einer Gruppe oder einem Satz, die als gleichgeordnet eingestuft werden.

StructureChangedEvent

Identifiziert das Ereignis, das ausgelöst wird, wenn die Benutzeroberflächenautomatisierung Struktur geändert wird.

ToolTipClosedEvent

Identifiziert das Ereignis, das ausgelöst wird, wenn eine QuickInfo geschlossen wird.

ToolTipOpenedEvent

Gibt das Ereignis an, das ausgelöst wird, wenn eine QuickInfo geöffnet wird.

Eigenschaften

Name Beschreibung
Cached

Ruft die Werte der zwischengespeicherten Benutzeroberflächenautomatisierung für dieses AutomationElement Objekt ab.

CachedChildren

Ruft die zwischengespeicherten untergeordneten Elemente dieser AutomationElement.

CachedParent

Ruft das zwischengespeicherte übergeordnete Element dieser AutomationElement.

Current

Ruft die aktuellen Eigenschaftswerte der AutomationElement.

FocusedElement

Ruft den AutomationElement Aktuellen Fokus ab.

RootElement

Ruft den Stamm AutomationElement für den aktuellen Desktop ab.

Methoden

Name Beschreibung
Equals(Object)

Bestimmt, ob der angegebene AutomationElement Wert denselben Wert wie dieser AutomationElementhat.

Finalize()

Ermöglicht es einem Objekt, Ressourcen freizugeben und andere Bereinigungsvorgänge auszuführen, bevor es von der Garbage Collection erneut beansprucht wird.

FindAll(TreeScope, Condition)

Gibt alle AutomationElement Objekte zurück, die die angegebene Bedingung erfüllen.

FindFirst(TreeScope, Condition)

Gibt das erste untergeordnete oder untergeordnete Element zurück, das der angegebenen Bedingung entspricht.

FromHandle(IntPtr)

Ruft ein neues AutomationElement Objekt für das Benutzeroberflächenelement ab, auf das vom angegebenen Fensterziehpunkt verwiesen wird.

FromLocalProvider(IRawElementProviderSimple)

Ruft ein neues AutomationElement Objekt aus einer lokalen IRawElementProviderSimple Implementierung ab.

FromPoint(Point)

Ruft ein neues AutomationElement Objekt für das Benutzeroberflächenelement am angegebenen Punkt auf dem Desktop ab.

GetCachedPattern(AutomationPattern)

Ruft das angegebene Muster aus dem Cache dieser AutomationElement.

GetCachedPropertyValue(AutomationProperty, Boolean)

Ruft den Wert der angegebenen Eigenschaft aus dem Cache dieser AutomationElementEigenschaft ab, optional wird jede Standardeigenschaft ignoriert.

GetCachedPropertyValue(AutomationProperty)

Ruft den Wert der angegebenen Eigenschaft aus dem Cache dieser AutomationElement. Ein entsprechender Standardwert für den Eigenschaftentyp wird für Eigenschaften zurückgegeben, die vom Benutzeroberflächenelement (Target User Interface, UI) nicht explizit unterstützt werden.

GetClickablePoint()

Ruft einen Punkt ab, auf den AutomationElement geklickt werden kann.

GetCurrentPattern(AutomationPattern)

Ruft das angegebene Musterobjekt für dieses AutomationElementObjekt ab.

GetCurrentPropertyValue(AutomationProperty, Boolean)

Ruft den Wert der angegebenen Eigenschaft für diese AutomationElementEigenschaft ab, optional wird jede Standardeigenschaft ignoriert.

GetCurrentPropertyValue(AutomationProperty)

Ruft den Wert der angegebenen Eigenschaft für dieses AutomationElementObjekt ab. Ein entsprechender Standardwert für den Eigenschaftentyp wird für Eigenschaften zurückgegeben, die vom Benutzeroberflächenelement (Target User Interface, UI) nicht explizit unterstützt werden.

GetHashCode()

Ruft den Hashcode für dies AutomationElementab.

GetRuntimeId()

Ruft den eindeutigen Bezeichner ab, der dem Benutzeroberflächenelement (Ui) zugewiesen ist.

GetSupportedPatterns()

Ruft die von dieser AutomationElement Unterstützung unterstützten Steuerelementmuster ab.

GetSupportedProperties()

Ruft die Bezeichner von Eigenschaften ab, die vom Element unterstützt werden.

GetType()

Ruft die Type der aktuellen Instanz ab.

(Geerbt von Object)
GetUpdatedCache(CacheRequest)

Ruft ein neues AutomationElement mit einem aktualisierten Cache ab.

MemberwiseClone()

Erstellt eine flache Kopie der aktuellen Object.

(Geerbt von Object)
SetFocus()

Legt den Fokus auf die AutomationElement.

ToString()

Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.

(Geerbt von Object)
TryGetCachedPattern(AutomationPattern, Object)

Ruft ein Steuerelementmuster aus dem Cache ab.

TryGetClickablePoint(Point)

Ruft einen Punkt innerhalb des Elements ab, auf den geklickt werden kann.

TryGetCurrentPattern(AutomationPattern, Object)

Ruft ein Objekt ab, das ein Steuerelementmuster implementiert.

Operatoren

Name Beschreibung
Equality(AutomationElement, AutomationElement)

Gibt einen Wert zurück, der angibt, ob die angegebenen AutomationElement Objekte auf dasselbe Benutzeroberflächenelement (UI) verweisen.

Inequality(AutomationElement, AutomationElement)

Gibt einen Wert zurück, der angibt, ob die angegebenen AutomationElement Objekte auf verschiedene Benutzeroberflächenelemente verweisen.

Gilt für:

Weitere Informationen