示例#1
0
        public TextRange[] GetVisibleRanges()
        {
            var nativeRanges = ComCallWrapper.Call(() => NativePattern.GetVisibleRanges());

            return(NativeValueConverter.NativeArrayToManaged(Automation, nativeRanges));
        }
示例#2
0
        public Element[] GetChildren()
        {
            var nativeChildren = ComCallWrapper.Call(() => NativeRange.GetChildren());

            return(NativeValueConverter.NativeArrayToManaged(Automation, nativeChildren));
        }
示例#3
0
        protected Element[] NativeElementArrayToElements(PropertyId property)
        {
            var nativeElements = Get <UIA.IUIAutomationElementArray>(property);

            return(NativeValueConverter.NativeArrayToManaged(AutomationElement.Automation, nativeElements));
        }
示例#4
0
文件: Element.cs 项目: csuffyy/FlaUI
        /// <summary>
        /// Finds all elements in the given treescope and condition
        /// </summary>
        public Element[] FindAll(TreeScope treeScope, ConditionBase condition)
        {
            var nativeFoundElements = NativeElement.FindAll((UIA.TreeScope)treeScope, NativeConditionConverter.ToNative(Automation, condition));

            return(NativeValueConverter.NativeArrayToManaged(Automation, nativeFoundElements));
        }