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)
XML Namespace:

public bool IsOffscreen { get; }
/** @property */
public boolean get_IsOffscreen ()

public function get IsOffscreen () : boolean

Not applicable.

Property Value

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions