Inheritance: GridItemPattern
Esempio n. 1
0
		/// -------------------------------------------------------------------
		/// <summary>
        /// Get the TableItemPattern on the element
        /// </summary>
		/// -------------------------------------------------------------------
		public TableItemTests(AutomationElement element, TestPriorities priority, string dirResults, bool testEvents, TypeOfControl typeOfControl, IApplicationCommands commands)
            :
            base(element, TestSuite, priority, typeOfControl, TypeOfPattern.TableItem, dirResults, testEvents, commands)
        {
            m_pattern = (TableItemPattern)GetPattern(m_le, m_useCurrent, TableItemPattern.Pattern);
            if (m_pattern == null)
                throw new Exception(Helpers.PatternNotSupported);
        }
Esempio n. 2
0
 internal static new object Wrap(AutomationElement el, object pattern, bool cached)
 {
     TableItemPattern result = null;
     if (pattern != null)
     {
         UIAutomationClient.IUIAutomationGridItemPattern gridPattern =
             (UIAutomationClient.IUIAutomationGridItemPattern)el.GetRawPattern(GridItemPattern.Pattern, cached);
         if (gridPattern != null)
         {
             result = new TableItemPattern(el, (UIAutomationClient.IUIAutomationTableItemPattern)pattern,
                 gridPattern, cached);
         }
     }
     return result;
 }
Esempio n. 3
0
        internal new static object Wrap(AutomationElement el, object pattern, bool cached)
        {
            TableItemPattern result = null;

            if (pattern != null)
            {
                UIAutomationClient.IUIAutomationGridItemPattern gridPattern =
                    (UIAutomationClient.IUIAutomationGridItemPattern)el.GetRawPattern(GridItemPattern.Pattern, cached);
                if (gridPattern != null)
                {
                    result = new TableItemPattern(el, (UIAutomationClient.IUIAutomationTableItemPattern)pattern,
                                                  gridPattern, cached);
                }
            }
            return(result);
        }
Esempio n. 4
0
			internal TableItemPatternInformation (TableItemPattern pattern, bool cache)
			{
				this.pattern = pattern;
				this.cache = cache;
			}
Esempio n. 5
0
 internal TableItemPatternInformation(TableItemPattern pattern, bool cache)
 {
     this.pattern = pattern;
     this.cache   = cache;
 }