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

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