protected override void Dispose(bool disposing) { if (Pattern != null) { System.Runtime.InteropServices.Marshal.ReleaseComObject(Pattern); this.Pattern = null; } base.Dispose(disposing); }
internal static TextPattern2 Wrap( AutomationElement element, IUIAutomationTextPattern2 textPattern2) { return(new TextPattern2(element: element, textPattern2: textPattern2)); }
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; }
public TextPattern2(A11yElement e, IUIAutomationTextPattern2 p) : base(e, PatternType.UIA_TextPattern2Id) { Pattern = p; }