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

            base.Dispose(disposing);
        }
Ejemplo n.º 2
0
 internal static TextEditPattern Wrap(
     AutomationElement element,
     IUIAutomationTextEditPattern textEditPattern)
 {
     return(new TextEditPattern(element: element, textEditPattern: textEditPattern));
 }
 public TextEditPattern(A11yElement e, IUIAutomationTextEditPattern p) : base(e, PatternType.UIA_TextEditPatternId)
 {
     Pattern = p;
 }
Ejemplo n.º 4
0
 public TextEditPattern(AutomationElement element, IUIAutomationTextEditPattern textEditPattern)
     : base(element: element, textPattern: textEditPattern)
 {
     this.textEditPattern = textEditPattern;
 }