示例#1
0
 internal CustomNavigationPattern(
     AutomationElement element,
     IUIAutomationCustomNavigationPattern CustomNavigationPattern)
     : base(el: element)
 {
     this._customNavigationPattern = CustomNavigationPattern;
 }
        protected override void Dispose(bool disposing)
        {
            if (Pattern != null)
            {
                Marshal.ReleaseComObject(Pattern);
                this.Pattern = null;
            }

            base.Dispose(disposing);
        }
示例#3
0
 internal static CustomNavigationPattern Wrap(
     AutomationElement element,
     IUIAutomationCustomNavigationPattern CustomNavigationPattern)
 {
     return(new CustomNavigationPattern(element: element, CustomNavigationPattern: CustomNavigationPattern));
 }
 public CustomNavigationPattern(A11yElement e, IUIAutomationCustomNavigationPattern p) : base(e, PatternType.UIA_CustomNavigationPatternId)
 {
     this.Pattern = p;
 }