示例#1
0
        protected override void Dispose(bool disposing)
        {
            if (Pattern != null)
            {
                System.Runtime.InteropServices.Marshal.ReleaseComObject(Pattern);
                this.Pattern = null;
            }

            base.Dispose(disposing);
        }
示例#2
0
 internal static TextPattern2 Wrap(
     AutomationElement element,
     IUIAutomationTextPattern2 textPattern2)
 {
     return(new TextPattern2(element: element, textPattern2: textPattern2));
 }
示例#3
0
 TextPattern2(AutomationElement element, IUIAutomationTextPattern2 textPattern2)
     : base(element: element, textPattern: textPattern2)
 {
     this._textPattern2 = textPattern2;
 }
 private TextPattern2(AutomationElement el, IUIAutomationTextPattern2 pattern, IUIAutomationTextPattern basePattern, bool cached)
     : base(el, basePattern, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }
示例#5
0
 public TextPattern2(A11yElement e, IUIAutomationTextPattern2 p) : base(e, PatternType.UIA_TextPattern2Id)
 {
     Pattern = p;
 }