コード例 #1
0
 ItemContainerPattern(
     AutomationElement element,
     IUIAutomationItemContainerPattern itemContainerPattern)
     : base(el: element)
 {
     this._itemContainerPattern = itemContainerPattern;
 }
コード例 #2
0
        protected override void Dispose(bool disposing)
        {
            if (Pattern != null)
            {
                System.Runtime.InteropServices.Marshal.ReleaseComObject(Pattern);
                this.Pattern = null;
            }

            base.Dispose(disposing);
        }
コード例 #3
0
        public ItemContainerPattern(A11yElement e, IUIAutomationItemContainerPattern p) : base(e, PatternType.UIA_ItemContainerPatternId)
        {
            if (e == null)
            {
                throw new ArgumentNullException(nameof(e));
            }

            Pattern         = p;
            this.UIAElement = e.PlatformObject;
        }
コード例 #4
0
 internal static ItemContainerPattern Wrap(
     AutomationElement element,
     IUIAutomationItemContainerPattern itemContainerPattern)
 {
     return(new ItemContainerPattern(element: element, itemContainerPattern: itemContainerPattern));
 }
コード例 #5
0
 public ItemContainerPattern(A11yElement e, IUIAutomationItemContainerPattern p) : base(e, PatternType.UIA_ItemContainerPatternId)
 {
     Pattern         = p;
     this.UIAElement = e.PlatformObject;
 }
コード例 #6
0
 private ItemContainerPattern(AutomationElement el, IUIAutomationItemContainerPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }