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); }
private TransformPattern(AutomationElement el, UIAutomationClient.IUIAutomationTransformPattern pattern, bool cached) : base(el, cached) { Debug.Assert(pattern != null); this._pattern = pattern; }