GetRawPattern() private method

private GetRawPattern ( AutomationPattern pattern, bool isCached ) : object
pattern AutomationPattern
isCached bool
return object
Beispiel #1
0
 internal new static object Wrap(AutomationElement el, object pattern, bool cached)
 {
     TablePattern result = null;
     if (pattern != null)
     {
         UIAutomationClient.IUIAutomationGridPattern gridPattern =
             (UIAutomationClient.IUIAutomationGridPattern)el.GetRawPattern(GridPattern.Pattern, cached);
         if (gridPattern != null)
         {
             result = new TablePattern(el, (UIAutomationClient.IUIAutomationTablePattern)pattern,
                 gridPattern, cached);
         }
     }
     return result;
 }
Beispiel #2
0
        internal new static object Wrap(AutomationElement el, object pattern, bool cached)
        {
            TablePattern result = null;

            if (pattern != null)
            {
                UIAutomationClient.IUIAutomationGridPattern gridPattern =
                    (UIAutomationClient.IUIAutomationGridPattern)el.GetRawPattern(GridPattern.Pattern, cached);
                if (gridPattern != null)
                {
                    result = new TablePattern(el, (UIAutomationClient.IUIAutomationTablePattern)pattern,
                                              gridPattern, cached);
                }
            }
            return(result);
        }
        internal static new object Wrap(AutomationElement el, object pattern, bool cached)
        {
            TextPattern2 result = null;

            if (pattern != null)
            {
                IUIAutomationTextPattern basePattern =
                    (IUIAutomationTextPattern)el.GetRawPattern(TextPattern.Pattern, cached);
                if (basePattern != null)
                {
                    result = new TextPattern2(el, (IUIAutomationTextPattern2)pattern,
                                              basePattern, cached);
                }
            }
            return(result);
        }
Beispiel #4
0
        internal new static object Wrap(AutomationElement el, object pattern, bool cached)
        {
            TransformPattern2 result = null;

            if (pattern != null)
            {
                UIAutomationClient.IUIAutomationTransformPattern basePattern =
                    (UIAutomationClient.IUIAutomationTransformPattern)el.GetRawPattern(TransformPattern.Pattern, cached);
                if (basePattern != null)
                {
                    result = new TransformPattern2(el, (UIAutomationClient.IUIAutomationTransformPattern2)pattern,
                                                   basePattern, cached);
                }
            }
            return(result);
        }
Beispiel #5
0
 internal static new object Wrap(AutomationElement el, object pattern, bool cached)
 {
     TextPattern2 result = null;
     if (pattern != null)
     {
         UIAutomationClient.IUIAutomationTextPattern basePattern =
             (UIAutomationClient.IUIAutomationTextPattern)el.GetRawPattern(TextPattern.Pattern, cached);
         if (basePattern != null)
         {
             result = new TextPattern2(el, (UIAutomationClient.IUIAutomationTextPattern2)pattern,
                 basePattern, cached);
         }
     }
     return result;
 }