IsTopmost Property

WindowPattern.WindowPatternInformation.IsTopmost Property


Gets a value that specifies whether the AutomationElement is the topmost element in the z-order.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

Public ReadOnly Property IsTopmost As Boolean

Property Value

Type: System.Boolean

true if the AutomationElement is topmost; otherwise false.

In the following example, an AutomationPropertyChangedEventHandler is defined to listen for changes to the IsTopmostProperty of an AutomationElement.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft