Beispiel #1
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));
        }
Beispiel #2
0
        public ITextRange RangeFromChild(AutomationElement child)
        {
            var nativeChild = AutomationElementConverter.ToNative(child);
            var nativeRange = NativePattern.RangeFromChild(nativeChild);

            return(TextRangeConverter.NativeToManaged((UIA2Automation)BasicAutomationElement.Automation, nativeRange));
        }
        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));
        }
Beispiel #4
0
        public override ITextRange RangeFromChild(AutomationElement child)
        {
            var nativeChild = child.ToNative();
            var nativeRange = NativePattern.RangeFromChild(nativeChild);

            return(TextRangeConverter.NativeToManaged((UIA2Automation)FrameworkAutomationElement.Automation, nativeRange));
        }
Beispiel #5
0
        public AutomationElement FindItemByProperty(AutomationElement startAfter, PropertyId property, object value)
        {
            var foundNativeElement = NativePattern.FindItemByProperty(
                startAfter == null ? null : AutomationElementConverter.ToNative(startAfter),
                property == null ? null : UIA.AutomationProperty.LookupById(property.Id), ValueConverter.ToNative(value));

            return(AutomationElementConverter.NativeToManaged((UIA2Automation)BasicAutomationElement.Automation, foundNativeElement));
        }
Beispiel #6
0
        public AutomationElement FindItemByProperty(AutomationElement startAfter, PropertyId property, object value)
        {
            var foundNativeElement = ComCallWrapper.Call(() =>
                                                         NativePattern.FindItemByProperty(
                                                             startAfter == null ? null : ValueConverter.ToNative(startAfter),
                                                             property == null ? 0 : property.Id, ValueConverter.ToNative(value)));

            return(ValueConverter.NativeToManaged((UIA3Automation)BasicAutomationElement.Automation, foundNativeElement));
        }
        public AutomationElement FindItemByProperty(AutomationElement startAfter, PropertyId property, object value)
        {
            var foundNativeElement = Com.Call(() =>
                                              NativePattern.FindItemByProperty(
                                                  startAfter?.ToNative(),
                                                  property?.Id ?? 0, ValueConverter.ToNative(value)));

            return(AutomationElementConverter.NativeToManaged((UIA3Automation)FrameworkAutomationElement.Automation, foundNativeElement));
        }
 public void Move(double x, double y)
 {
     NativePattern.Move(x, y);
 }
 public override void SetValue(string value)
 {
     ComCallWrapper.Call(() => NativePattern.SetValue(value));
 }
 public override void Select(int flagsSelect)
 {
     ComCallWrapper.Call(() => NativePattern.Select(flagsSelect));
 }
 public override IAccessible GetIAccessible()
 {
     // ReSharper disable once SuspiciousTypeConversion.Global
     return(ComCallWrapper.Call(() => (IAccessible)NativePattern.GetIAccessible()));
 }
Beispiel #12
0
 public override void Cancel()
 {
     NativePattern.Cancel();
 }
        public override ITextRange[] GetVisibleRanges()
        {
            var nativeRanges = Com.Call(() => NativePattern.GetVisibleRanges());

            return(TextRangeConverter.NativeArrayToManaged((UIA3Automation)FrameworkAutomationElement.Automation, nativeRanges));
        }
        public override ITextRange RangeFromPoint(Point point)
        {
            var nativeRange = Com.Call(() => NativePattern.RangeFromPoint(point.ToTagPoint()));

            return(TextRangeConverter.NativeToManaged((UIA3Automation)FrameworkAutomationElement.Automation, nativeRange));
        }
Beispiel #15
0
 public override void Rotate(double degrees)
 {
     Com.Call(() => NativePattern.Rotate(degrees));
 }
Beispiel #16
0
 public override void Resize(double width, double height)
 {
     Com.Call(() => NativePattern.Resize(width, height));
 }
Beispiel #17
0
 public override void Move(double x, double y)
 {
     Com.Call(() => NativePattern.Move(x, y));
 }
 public object GetUnderlyingObjectModel()
 {
     return(Com.Call(() => NativePattern.GetUnderlyingObjectModel()));
 }
Beispiel #19
0
 public override void StartListening(SynchronizedInputType inputType)
 {
     NativePattern.StartListening((UIA.SynchronizedInputType)inputType);
 }
 public void Resize(double width, double height)
 {
     NativePattern.Resize(width, height);
 }
 public void Rotate(double degrees)
 {
     NativePattern.Rotate(degrees);
 }
 public override void SetDockPosition(DockPosition dockPos)
 {
     NativePattern.SetDockPosition((UIA.DockPosition)dockPos);
 }
Beispiel #23
0
 public override void Close()
 {
     Com.Call(() => NativePattern.Close());
 }
Beispiel #24
0
 public override void SetScrollPercent(double horizontalPercent, double verticalPercent)
 {
     NativePattern.SetScrollPercent(horizontalPercent, verticalPercent);
 }
 public override void Toggle()
 {
     NativePattern.Toggle();
 }
Beispiel #26
0
 public override void SetWindowVisualState(WindowVisualState state)
 {
     Com.Call(() => NativePattern.SetWindowVisualState((UIA.WindowVisualState)state));
 }
Beispiel #27
0
 public override void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
 {
     NativePattern.Scroll((UIA.ScrollAmount)horizontalAmount, (UIA.ScrollAmount)verticalAmount);
 }
Beispiel #28
0
 public override bool WaitForInputIdle(int milliseconds)
 {
     return(Com.Call(() => NativePattern.WaitForInputIdle(milliseconds)) != 0);
 }
Beispiel #29
0
 public void ScrollIntoView()
 {
     NativePattern.ScrollIntoView();
 }
 public override void DoDefaultAction()
 {
     ComCallWrapper.Call(() => NativePattern.DoDefaultAction());
 }