/// <summary>
 /// Gets the number of columns spanned by a cell or item.
 /// </summary>
 /// <param name="extension">The extension.</param>
 /// <param name="control">The TableItem element.</param>
 /// <returns>
 /// The number of columns spanned
 /// </returns>
 public static int GetColumnSpanHook(this TableItemAdapter extension, BaseProdControl control)
 {
     try
     {
         return(UiaGetColumnSpan(control));
     }
     catch (ArgumentNullException err)
     {
         throw new ProdOperationException(err);
     }
     catch (ElementNotAvailableException err)
     {
         throw new ProdOperationException(err);
     }
     catch (InvalidOperationException err)
     {
         throw new ProdOperationException(err);
     }
 }
 /// <summary>
 /// Gets a collection of UI Automation providers that represents all the row headers in a DataGrid
 /// </summary>
 /// <param name="extension">The extended interface.</param>
 /// <param name="control">The UI Automation element</param>
 /// <returns>
 /// An array of header items
 /// </returns>
 public static AutomationElement[] GetRowHeadersHook(this TableItemAdapter extension, BaseProdControl control)
 {
     try
     {
         return(UiaGetRowHeaders(control));
     }
     catch (ArgumentNullException err)
     {
         throw new ProdOperationException(err);
     }
     catch (ElementNotAvailableException err)
     {
         throw new ProdOperationException(err);
     }
     catch (InvalidOperationException err)
     {
         throw new ProdOperationException(err);
     }
 }
 /// <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);
     }
 }