TextChildPattern(
     AutomationElement element,
     IUIAutomationTextChildPattern textChildPattern)
     : base(el: element)
 {
     this._textChildPattern = textChildPattern;
 }
示例#2
0
        protected override void Dispose(bool disposing)
        {
            if (Pattern != null)
            {
                System.Runtime.InteropServices.Marshal.ReleaseComObject(Pattern);
                this.Pattern = null;
            }

            base.Dispose(disposing);
        }
 internal static TextChildPattern Wrap(
     AutomationElement element,
     IUIAutomationTextChildPattern textChildPattern)
 {
     return(new TextChildPattern(element: element, textChildPattern: textChildPattern));
 }
示例#4
0
 public TextChildPattern(A11yElement e, IUIAutomationTextChildPattern p) : base(e, PatternType.UIA_TextChildPatternId)
 {
     Pattern = p;
 }
示例#5
0
 private TextChildPattern(AutomationElement el, IUIAutomationTextChildPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }