public override ITextRange RangeFromChild(AutomationElement child) { var nativeChild = child.ToNative(); var nativeRange = Com.Call(() => NativePattern.RangeFromChild(nativeChild)); return(TextRangeConverter.NativeToManaged((UIA3Automation)BasicAutomationElement.Automation, nativeRange)); }
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)); }
public override ITextRange RangeFromChild(AutomationElement child) { var nativeChild = child.ToNative(); var nativeRange = NativePattern.RangeFromChild(nativeChild); return(TextRangeConverter.NativeToManaged((UIA2Automation)FrameworkAutomationElement.Automation, nativeRange)); }
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)); }
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())); }
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)); }
public override void Rotate(double degrees) { Com.Call(() => NativePattern.Rotate(degrees)); }
public override void Resize(double width, double height) { Com.Call(() => NativePattern.Resize(width, height)); }
public override void Move(double x, double y) { Com.Call(() => NativePattern.Move(x, y)); }
public object GetUnderlyingObjectModel() { return(Com.Call(() => NativePattern.GetUnderlyingObjectModel())); }
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); }
public override void Close() { Com.Call(() => NativePattern.Close()); }
public override void SetScrollPercent(double horizontalPercent, double verticalPercent) { NativePattern.SetScrollPercent(horizontalPercent, verticalPercent); }
public override void Toggle() { NativePattern.Toggle(); }
public override void SetWindowVisualState(WindowVisualState state) { Com.Call(() => NativePattern.SetWindowVisualState((UIA.WindowVisualState)state)); }
public override void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount) { NativePattern.Scroll((UIA.ScrollAmount)horizontalAmount, (UIA.ScrollAmount)verticalAmount); }
public override bool WaitForInputIdle(int milliseconds) { return(Com.Call(() => NativePattern.WaitForInputIdle(milliseconds)) != 0); }
public void ScrollIntoView() { NativePattern.ScrollIntoView(); }
public override void DoDefaultAction() { ComCallWrapper.Call(() => NativePattern.DoDefaultAction()); }