コード例 #1
0
        public AutomationElement GetParent(AutomationElement element, ICacheRequest cacheRequest = null)
        {
            var parent = cacheRequest == null?
                         NativeTreeWalker.GetParent(element.ToNative()) :
                             NativeTreeWalker.GetParent(element.ToNative(), cacheRequest.ToNative());

            return(Automation.WrapNativeElement(parent));
        }
コード例 #2
0
        public AutomationElement GetPreviousSibling(AutomationElement element, ICacheRequest cacheRequest = null)
        {
            var child = cacheRequest == null?
                        NativeTreeWalker.GetPreviousSibling(element.ToNative()) :
                            NativeTreeWalker.GetPreviousSibling(element.ToNative(), cacheRequest.ToNative());

            return(Automation.WrapNativeElement(child));
        }
コード例 #3
0
ファイル: UIA3TreeWalker.cs プロジェクト: windygu/FlaUI
        public AutomationElement GetLastChild(AutomationElement element, ICacheRequest cacheRequest = null)
        {
            var child = cacheRequest == null?
                        NativeTreeWalker.GetLastChildElement(element.ToNative()) :
                            NativeTreeWalker.GetLastChildElementBuildCache(element.ToNative(), cacheRequest.ToNative());

            return(Automation.WrapNativeElement(child));
        }