internal TransformPattern( AutomationElement element, IUIAutomationTransformPattern transformPattern) : base(el: element) { this._transformPattern = transformPattern; }
public TransformPattern(A11yElement e, IUIAutomationTransformPattern p) : base(e, PatternType.UIA_TransformPatternId) { Pattern = p; PopulateProperties(); // Get UI Actionability based on Properties than methods. this.IsUIActionable = this.Properties.Any(pp => pp.Value == true); }
protected override void Dispose(bool disposing) { if (Pattern != null) { System.Runtime.InteropServices.Marshal.ReleaseComObject(Pattern); this.Pattern = null; } base.Dispose(disposing); }
internal new static object Wrap(AutomationElement el, object pattern, bool cached) { TransformPattern2 result = null; if (pattern != null) { IUIAutomationTransformPattern basePattern = (IUIAutomationTransformPattern)el.GetRawPattern(TransformPattern.Pattern, cached); if (basePattern != null) { result = new TransformPattern2(el, (IUIAutomationTransformPattern2)pattern, basePattern, cached); } } return(result); }
private TransformPattern(IUIAutomationTransformPattern pattern) { _pattern = pattern; }
internal static TransformPattern Wrap( AutomationElement element, IUIAutomationTransformPattern transformPattern) { return(new TransformPattern(element: element, transformPattern: transformPattern)); }
private TransformPattern(IUIAutomationTransformPattern pattern) { _pattern = pattern; }
protected TransformPattern(AutomationElement el, IUIAutomationTransformPattern pattern, bool cached) : base(el, cached) { Debug.Assert(pattern != null); this._pattern = pattern; }
private TransformPattern2(AutomationElement el, IUIAutomationTransformPattern2 pattern2, IUIAutomationTransformPattern pattern, bool cached) : base(el, pattern, cached) { Debug.Assert(pattern2 != null); this._pattern = pattern2; }
public Window(IUIAutomationElement window) { _window = window; _transformPattern = window?.GetCurrentPattern(UIA_PatternIds.UIA_TransformPatternId) as IUIAutomationTransformPattern; }