TreeWalker.Normalize Method (AutomationElement, CacheRequest)
Assembly: UIAutomationClient (in uiautomationclient.dll)
public function Normalize ( element : AutomationElement, request : CacheRequest ) : AutomationElement
The element from which to start the normalization.
A cache request object specifying properties and patterns on the returned AutomationElement to cache.
Return ValueThe nearest AutomationElement in the current view. If the navigation up the ancestor chain reaches the root element, the root element is returned.
The element is normalized by navigating up the ancestor chain in the tree until an element that satisfies the view condition for the TreeWalker object is reached. If the root element is reached, the root element is returned even if it does not satisfy the view condition.
This method is useful for applications that obtain references to UI Automation elements by hit-testing. The application might want to work only with specific types of elements, and can use Normalize to make sure that no matter what element is initially retrieved (for example, when a scroll bar gets the input focus), only the element of interest (such as a content element) is ultimately retrieved.
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 EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.