SelectionPattern( AutomationElement element, IUIAutomationSelectionPattern selectionPattern) : base(el: element) { this._selectionPattern = selectionPattern; }
protected override void Dispose(bool disposing) { if (Pattern != null) { System.Runtime.InteropServices.Marshal.ReleaseComObject(Pattern); this.Pattern = null; } base.Dispose(disposing); }
public SelectionPattern(IUIAutomation automation, IUIAutomationElement element) { _element = element; _automation = automation; _selectionPattern = element.GetCurrentPattern(UIA_PatternIds.UIA_SelectionPatternId) as IUIAutomationSelectionPattern; }
private SelectionPattern(AutomationElement el, IUIAutomationSelectionPattern pattern, bool cached) : base(el, cached) { Debug.Assert(pattern != null); this._pattern = pattern; }
public SelectionPattern(A11yElement e, IUIAutomationSelectionPattern p) : base(e, PatternType.UIA_SelectionPatternId) { Pattern = p; PopulateProperties(); }
internal static SelectionPattern Wrap( AutomationElement element, IUIAutomationSelectionPattern selectionPattern) { return(new SelectionPattern(element: element, selectionPattern: selectionPattern)); }