System.Windows.Automation.TreeWalker.Normalize C# (CSharp) Method

Normalize() public method

public Normalize ( AutomationElement element ) : AutomationElement
element AutomationElement
return AutomationElement
        public AutomationElement Normalize(AutomationElement element)
        {
            return Normalize(element, CacheRequest.Current);
        }

Same methods

TreeWalker::Normalize ( AutomationElement element, CacheRequest request ) : AutomationElement

Usage Example

Example #1
0
        public static AutomationElement Normalize(AutomationElement element)
        {
            if (element.Current.ControlType == ControlType.Window)
                return element;

            TreeWalker walker = new TreeWalker(ConditionBuilder.ToCondition(a => a.Current.ControlType == ControlType.Window));

            return walker.Normalize(element);
        }
All Usage Examples Of System.Windows.Automation.TreeWalker::Normalize