예제 #1
0
        protected override void Dispose(bool disposing)
        {
            if (Pattern != null)
            {
                Marshal.ReleaseComObject(Pattern);
                this.Pattern = null;
            }

            base.Dispose(disposing);
        }
예제 #2
0
 internal static DropTargetPattern Wrap(
     AutomationElement element,
     IUIAutomationDropTargetPattern dropTargetPattern)
 {
     return(new DropTargetPattern(element: element, dropTargetPattern: dropTargetPattern));
 }
예제 #3
0
        public DropTargetPattern(A11yElement e, IUIAutomationDropTargetPattern p) : base(e, PatternType.UIA_DropTargetPatternId)
        {
            Pattern = p;

            PopulateProperties();
        }
 private DropTargetPattern(AutomationElement el, IUIAutomationDropTargetPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }