This documentation is archived and is not being maintained.

AutomationElement.AutomationElementInformation.IsOffscreen Property

Gets a value that indicates whether the UI Automation element is visible on the screen.

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

public bool IsOffscreen { get; }

Property Value

Type: System.Boolean
true if the control is not visible; otherwise false.

The value is true if the element is entirely scrolled out of view (for example, an item in a list box) or collapsed out of view (for example, an item in a tree view or menu, or a minimized window). If the element has a clickable point that can cause it to be focused, it is considered to be onscreen.

The value of the property is not affected by occlusion by other windows, or by whether the element is visible on a specific monitor.

When the value is true for a container, it is also true for the container element's descendants.

For more information, see IsOffscreenProperty.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0