예제 #1
0
 public bool WaitForInputIdle(int milliseconds)
 {
     try {
         return(pattern.WaitForInputIdle(milliseconds));
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #2
0
 public void SetValue(double value)
 {
     try {
         pattern.SetValue(value);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #3
0
 public void SetWindowVisualState(WindowVisualState state)
 {
     try {
         pattern.SetVisualState(state);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #4
0
 public void Expand()
 {
     try {
         pattern.Expand();
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #5
0
 public void Collapse()
 {
     try {
         pattern.Collapse();
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #6
0
 public void Resize(double w, double h)
 {
     try {
         pattern.Resize(w, h);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #7
0
 public void Rotate(double degrees)
 {
     try {
         pattern.Rotate(degrees);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #8
0
 public void Move(double x, double y)
 {
     try {
         pattern.Move(x, y);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #9
0
 public void SetScrollPercent(double horizontalPercent, double verticalPercent)
 {
     try {
         pattern.SetScrollPercent(horizontalPercent, verticalPercent);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #10
0
 public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
 {
     try {
         pattern.Scroll(horizontalAmount, verticalAmount);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #11
0
 public void ExpandToEnclosingUnit(TextUnit unit)
 {
     try {
         range.ExpandToEnclosingUnit(unit);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #12
0
 public int Move(TextUnit unit, int count)
 {
     try {
         return(range.Move(unit, count));
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #13
0
 public void Invoke()
 {
     try {
         pattern.Invoke();
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #14
0
 public void ScrollIntoView(bool alignToTop)
 {
     try {
         range.ScrollIntoView(alignToTop);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #15
0
 public void RemoveFromSelection()
 {
     try {
         range.RemoveFromSelection();
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #16
0
 public int MoveEndpointByUnit(TextPatternRangeEndpoint endpoint, TextUnit unit, int count)
 {
     try {
         return(range.MoveEndpointByUnit(endpoint, unit, count));
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #17
0
 public void Select()
 {
     try {
         pattern.Select();
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #18
0
 public void AddToSelection()
 {
     try {
         range.AddToSelection();
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #19
0
 public bool SupportsProperty(AutomationProperty property)
 {
     try {
         return(dbusElement.SupportsProperty(property.Id));
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #20
0
 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);
     }
 }
예제 #22
0
 public IElement [] GetColumnHeaders()
 {
     try {
         return(source.GetOrCreateElements(busName, pattern.GetColumnHeaderPaths()));
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #23
0
 public int [] GetSupportedViews()
 {
     try {
         return(pattern.GetSupportedViews());
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #24
0
 public void SetDockPosition(DockPosition dockPosition)
 {
     try {
         pattern.SetDockPosition(dockPosition);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #25
0
 public void SetCurrentView(int viewId)
 {
     try {
         pattern.SetCurrentView(viewId);
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #26
0
 public string GetViewName(int viewId)
 {
     try {
         return(pattern.GetViewName(viewId));
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #27
0
 public string GetText(int maxLength)
 {
     try {
         return(range.GetText(maxLength));
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #28
0
 public object GetAttributeValue(AutomationTextAttribute attribute)
 {
     try {
         //todo Need object transformation
         return(range.GetAttributeValue(attribute.Id));
     } catch (Exception ex) {
         throw DbusExceptionTranslator.Translate(ex);
     }
 }
예제 #29
0
        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));
        }
예제 #30
0
        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));
        }