private static int UiaGetRowSpan(BaseProdControl control) { int retVal = TableItemPatternHelper.GetRowSpan(control.UIAElement); LogController.ReceiveLogMessage(new LogMessage("Row Span: " + retVal)); return(retVal); }
private static AutomationElement[] UiaGetRowHeaders(BaseProdControl control) { AutomationElement[] retVal = TableItemPatternHelper.GetRowHeaderItems(control.UIAElement); Collection <object> retList = new Collection <object>(retVal); LogController.ReceiveLogMessage(new LogMessage("Headers", retList)); return(retVal); }
/// <summary> /// Gets a UI Automation element that supports the GridPattern control pattern and represents the table cell or item container. /// </summary> /// <param name="extension">The extension.</param> /// <param name="control">The TableItem Element.</param> /// <returns>A UI Automation element that supports the GridPattern control pattern and represents the table cell or item container</returns> public static AutomationElement GetContainingGridHook(this TableItemAdapter extension, BaseProdControl control) { try { return(TableItemPatternHelper.GetContainingGrid(control.UIAElement)); } catch (ArgumentNullException err) { throw new ProdOperationException(err); } catch (ElementNotAvailableException err) { throw new ProdOperationException(err); } catch (InvalidOperationException err) { throw new ProdOperationException(err); } }