ItemContainerPattern( AutomationElement element, IUIAutomationItemContainerPattern itemContainerPattern) : base(el: element) { this._itemContainerPattern = itemContainerPattern; }
protected override void Dispose(bool disposing) { if (Pattern != null) { System.Runtime.InteropServices.Marshal.ReleaseComObject(Pattern); this.Pattern = null; } base.Dispose(disposing); }
public ItemContainerPattern(A11yElement e, IUIAutomationItemContainerPattern p) : base(e, PatternType.UIA_ItemContainerPatternId) { if (e == null) { throw new ArgumentNullException(nameof(e)); } Pattern = p; this.UIAElement = e.PlatformObject; }
internal static ItemContainerPattern Wrap( AutomationElement element, IUIAutomationItemContainerPattern itemContainerPattern) { return(new ItemContainerPattern(element: element, itemContainerPattern: itemContainerPattern)); }
public ItemContainerPattern(A11yElement e, IUIAutomationItemContainerPattern p) : base(e, PatternType.UIA_ItemContainerPatternId) { Pattern = p; this.UIAElement = e.PlatformObject; }
private ItemContainerPattern(AutomationElement el, IUIAutomationItemContainerPattern pattern, bool cached) : base(el, cached) { Debug.Assert(pattern != null); this._pattern = pattern; }