Exemplo n.º 1
0
        public override ITextRange RangeFromChild(SHAutomationElement child)
        {
            var nativeChild = SHAutomationElementConverter.ToNative(child);
            var nativeRange = Com.Call(() => NativePattern.RangeFromChild(nativeChild));

            return(TextRangeConverter.NativeToManaged((UIA3Automation)FrameworkAutomationElement.Automation, nativeRange));
        }
Exemplo n.º 2
0
        public ITextRange RangeFromChild(AutomationElement child)
        {
            var nativeChild = AutomationElementConverter.ToNative(child);
            var nativeRange = NativePattern.RangeFromChild(nativeChild);

            return(TextRangeConverter.NativeToManaged((UIA2Automation)BasicAutomationElement.Automation, nativeRange));
        }
Exemplo n.º 3
0
        public override ITextRange RangeFromChild(AutomationElement child)
        {
            var nativeChild = child.ToNative();
            var nativeRange = Com.Call(() => NativePattern.RangeFromChild(nativeChild));

            return(TextRangeConverter.NativeToManaged((UIA3Automation)BasicAutomationElement.Automation, nativeRange));
        }
Exemplo n.º 4
0
        public override ITextRange RangeFromChild(AutomationElement child)
        {
            var nativeChild = child.ToNative();
            var nativeRange = NativePattern.RangeFromChild(nativeChild);

            return(TextRangeConverter.NativeToManaged((UIA2Automation)FrameworkAutomationElement.Automation, nativeRange));
        }
Exemplo n.º 5
0
        public TextRange RangeFromChild(Element child)
        {
            var nativeRange = ComCallWrapper.Call(() => NativePattern.RangeFromChild(child.NativeElement));

            return(NativeValueConverter.NativeToManaged(Automation, nativeRange));
        }