protected override void Dispose(bool disposing) { if (Pattern != null) { Marshal.ReleaseComObject(Pattern); this.Pattern = null; } base.Dispose(disposing); }
public DockPattern(A11yElement e, IUIAutomationDockPattern p) : base(e, PatternType.UIA_DockPatternId) { this.Pattern = p; PopulateProperties(); }
internal static DockPattern Wrap( AutomationElement element, IUIAutomationDockPattern dockPattern) { return(new DockPattern(element: element, dockPattern: dockPattern)); }
private DockPattern(AutomationElement el, IUIAutomationDockPattern pattern, bool cached) : base(el, cached) { Debug.Assert(pattern != null); this._pattern = pattern; }
DockPattern(AutomationElement element, IUIAutomationDockPattern dockPattern) : base(el: element) { this._dockPattern = dockPattern; }