public bool WaitForInputIdle(int milliseconds) { try { return(pattern.WaitForInputIdle(milliseconds)); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void SetValue(double value) { try { pattern.SetValue(value); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void SetWindowVisualState(WindowVisualState state) { try { pattern.SetVisualState(state); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void Expand() { try { pattern.Expand(); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void Collapse() { try { pattern.Collapse(); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void Resize(double w, double h) { try { pattern.Resize(w, h); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void Rotate(double degrees) { try { pattern.Rotate(degrees); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void Move(double x, double y) { try { pattern.Move(x, y); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void SetScrollPercent(double horizontalPercent, double verticalPercent) { try { pattern.SetScrollPercent(horizontalPercent, verticalPercent); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount) { try { pattern.Scroll(horizontalAmount, verticalAmount); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void ExpandToEnclosingUnit(TextUnit unit) { try { range.ExpandToEnclosingUnit(unit); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public int Move(TextUnit unit, int count) { try { return(range.Move(unit, count)); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void Invoke() { try { pattern.Invoke(); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void ScrollIntoView(bool alignToTop) { try { range.ScrollIntoView(alignToTop); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void RemoveFromSelection() { try { range.RemoveFromSelection(); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public int MoveEndpointByUnit(TextPatternRangeEndpoint endpoint, TextUnit unit, int count) { try { return(range.MoveEndpointByUnit(endpoint, unit, count)); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void Select() { try { pattern.Select(); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void AddToSelection() { try { range.AddToSelection(); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public bool SupportsProperty(AutomationProperty property) { try { return(dbusElement.SupportsProperty(property.Id)); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void ScrollIntoView() { try { pattern.ScrollIntoView(); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void DoDefaultAction() { try { pattern.DoDefaultAction(); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public IElement [] GetColumnHeaders() { try { return(source.GetOrCreateElements(busName, pattern.GetColumnHeaderPaths())); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public int [] GetSupportedViews() { try { return(pattern.GetSupportedViews()); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void SetDockPosition(DockPosition dockPosition) { try { pattern.SetDockPosition(dockPosition); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public void SetCurrentView(int viewId) { try { pattern.SetCurrentView(viewId); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public string GetViewName(int viewId) { try { return(pattern.GetViewName(viewId)); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public string GetText(int maxLength) { try { return(range.GetText(maxLength)); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public object GetAttributeValue(AutomationTextAttribute attribute) { try { //todo Need object transformation return(range.GetAttributeValue(attribute.Id)); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } }
public IElement GetItem(int row, int column) { string elementPath = null; try { elementPath = pattern.GetItemPath(row, column); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } return(source.GetOrCreateElement(busName, elementPath)); }
public IElement GetDescendantFromPoint(double x, double y) { string descendantPath = null; try { descendantPath = dbusElement.GetDescendantPathFromPoint(x, y); } catch (Exception ex) { throw DbusExceptionTranslator.Translate(ex); } return(source.GetOrCreateElement(busName, descendantPath)); }