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

            base.Dispose(disposing);
        }
Example #2
0
 public DockPattern(A11yElement e, IUIAutomationDockPattern p) : base(e, PatternType.UIA_DockPatternId)
 {
     this.Pattern = p;
     PopulateProperties();
 }
Example #3
0
 internal static DockPattern Wrap(
     AutomationElement element,
     IUIAutomationDockPattern dockPattern)
 {
     return(new DockPattern(element: element, dockPattern: dockPattern));
 }
Example #4
0
 private DockPattern(AutomationElement el, IUIAutomationDockPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }
Example #5
0
 DockPattern(AutomationElement element, IUIAutomationDockPattern dockPattern)
     : base(el: element)
 {
     this._dockPattern = dockPattern;
 }