Exemplo n.º 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));
        }
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(SHAutomationElement child)
        {
            var nativeChild = SHAutomationElementConverter.ToNative(child);
            var nativeRange = Com.Call(() => NativePattern.RangeFromChild(nativeChild));

            return(TextRangeConverter.NativeToManaged((UIA3Automation)FrameworkAutomationElement.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 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 8
0
 public void Move(double x, double y)
 {
     NativePattern.Move(x, y);
 }
Exemplo n.º 9
0
 public override void SetValue(string value)
 {
     ComCallWrapper.Call(() => NativePattern.SetValue(value));
 }
Exemplo n.º 10
0
 public override void Select(int flagsSelect)
 {
     ComCallWrapper.Call(() => NativePattern.Select(flagsSelect));
 }
Exemplo n.º 11
0
 public override IAccessible GetIAccessible()
 {
     // ReSharper disable once SuspiciousTypeConversion.Global
     return(ComCallWrapper.Call(() => (IAccessible)NativePattern.GetIAccessible()));
 }
Exemplo n.º 12
0
 public override void Cancel()
 {
     NativePattern.Cancel();
 }
Exemplo n.º 13
0
        public override ITextRange[] GetVisibleRanges()
        {
            var nativeRanges = Com.Call(() => NativePattern.GetVisibleRanges());

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

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