Skip to main content

GetAutomationId Method

Gets the automation ID of the element that is associated with the UI Automation peer.

Definition

Namespace: Avalonia.Automation.Peers
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public string? GetAutomationId()

Return Value

String

Remarks

WindowsUIA_AutomationIdPropertyId
macOSNSAccessibilityProtocol.accessibilityIdentifier

See Also

Reference

AutomationPeer Class
Avalonia.Automation.Peers Namespace