public IAccessible GetIAccessible() { // ReSharper disable once SuspiciousTypeConversion.Global return(ComCallWrapper.Call(() => (IAccessible)NativePattern.GetIAccessible())); }
public void RemoveFromSelection() { ComCallWrapper.Call(() => NativeRange.RemoveFromSelection()); }
public void Select() { ComCallWrapper.Call(() => NativeRange.Select()); }
public string GetText(int maxLength) { return(ComCallWrapper.Call(() => NativeRange.GetText(maxLength))); }
public void MoveEndpointByRange(TextPatternRangeEndpoint srcEndPoint, ITextRange targetRange, TextPatternRangeEndpoint targetEndPoint) { var nativeRange = ToNativeRange(targetRange); ComCallWrapper.Call(() => NativeRange.MoveEndpointByRange((UIA.TextPatternRangeEndpoint)srcEndPoint, nativeRange, (UIA.TextPatternRangeEndpoint)targetEndPoint)); }
public void Expand() { ComCallWrapper.Call(() => NativePattern.Expand()); }
public AutomationElement[] GetChildren() { var nativeChildren = ComCallWrapper.Call(() => NativeRange.GetChildren()); return(AutomationElementConverter.NativeArrayToManaged(Automation, nativeChildren)); }
public void Invoke() { ComCallWrapper.Call(() => NativePattern.Invoke()); }
public Element GetItemByName(string name) { var nativeElement = ComCallWrapper.Call(() => NativePattern.GetItemByName(name)); return(ToAutomationElement(nativeElement)); }
public void SetDockPosition(DockPosition dockPos) { ComCallWrapper.Call(() => NativePattern.SetDockPosition((UIA.DockPosition)dockPos)); }
public void ShowContextMenu() { ComCallWrapper.Call(() => NativeRange2.ShowContextMenu()); }
public void ScrollIntoView() { ComCallWrapper.Call(() => NativePattern.ScrollIntoView()); }
public ITextRange GetConversionTarget() { var nativeRange = ComCallWrapper.Call(() => ExtendedNativePattern.GetConversionTarget()); return(TextRangeConverter.NativeToManaged((UIA3Automation)BasicAutomationElement.Automation, nativeRange)); }
public void Select(int flagsSelect) { ComCallWrapper.Call(() => NativePattern.Select(flagsSelect)); }
/// <inheritdoc /> public override void SetValue(string value) { ComCallWrapper.Call(() => NativePattern.SetValue(value)); }
public void SetValue(double val) { ComCallWrapper.Call(() => NativePattern.SetValue(val)); }
public void Collapse() { ComCallWrapper.Call(() => NativePattern.Collapse()); }
public void Realize() { ComCallWrapper.Call(() => NativePattern.Realize()); }
public object GetUnderlyingObjectModel() { return(ComCallWrapper.Call(() => NativePattern.GetUnderlyingObjectModel())); }
public TextRange[] GetVisibleRanges() { var nativeRanges = ComCallWrapper.Call(() => NativePattern.GetVisibleRanges()); return(NativeValueConverter.NativeArrayToManaged(Automation, nativeRanges)); }
public AutomationElement GetEnclosingElement() { var nativeElement = ComCallWrapper.Call(() => NativeRange.GetEnclosingElement()); return(AutomationElementConverter.NativeToManaged(Automation, nativeElement)); }
public TextRange RangeFromChild(Element child) { var nativeRange = ComCallWrapper.Call(() => NativePattern.RangeFromChild(child.NativeElement)); return(NativeValueConverter.NativeToManaged(Automation, nativeRange)); }
public int Move(TextUnit unit, int count) { return(ComCallWrapper.Call(() => NativeRange.Move((UIA.TextUnit)unit, count))); }
public TextRange RangeFromPoint(Point point) { var nativeRange = ComCallWrapper.Call(() => NativePattern.RangeFromPoint(point.ToTagPoint())); return(NativeValueConverter.NativeToManaged(Automation, nativeRange)); }
public int MoveEndpointByUnit(TextPatternRangeEndpoint endpoint, TextUnit unit, int count) { return(ComCallWrapper.Call(() => NativeRange.MoveEndpointByUnit((UIA.TextPatternRangeEndpoint)endpoint, (UIA.TextUnit)unit, count))); }
public string GetViewName(int view) { return(ComCallWrapper.Call(() => NativePattern.GetViewName(view))); }
public void ScrollIntoView(bool alignToTop) { ComCallWrapper.Call(() => NativeRange.ScrollIntoView(alignToTop.ToInt())); }
public void SetCurrentView(int view) { ComCallWrapper.Call(() => NativePattern.SetCurrentView(view)); }
public void AddToSelection() { ComCallWrapper.Call(() => NativeRange.AddToSelection()); }
public void DoDefaultAction() { ComCallWrapper.Call(() => NativePattern.DoDefaultAction()); }