TreeWalker.Normalize Method (AutomationElement)
Assembly: UIAutomationClient (in UIAutomationClient.dll)
- Type: System.Windows.Automation.AutomationElement
The element from which to start the normalization.
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.