public DragPattern(A11yElement e, IUIAutomationDragPattern p) : base(e, PatternType.UIA_DragPatternId) { Pattern = p; // though member method is not action specific, this pattern means for UI action. this.IsUIActionable = true; PopulateProperties(); }
protected override void Dispose(bool disposing) { if (Pattern != null) { Marshal.ReleaseComObject(Pattern); this.Pattern = null; } base.Dispose(disposing); }
DragPattern(AutomationElement element, IUIAutomationDragPattern dragPattern) : base(el: element) { this._dragPattern = dragPattern; }
internal static DragPattern Wrap( AutomationElement element, IUIAutomationDragPattern dragPattern) { return(new DragPattern(element: element, dragPattern: dragPattern)); }
private DragPattern(AutomationElement el, IUIAutomationDragPattern pattern, bool cached) : base(el, cached) { Debug.Assert(pattern != null); this._pattern = pattern; }