AnnotationPattern( AutomationElement element, IUIAutomationAnnotationPattern annotationPattern) : base(el: element) { this._annotationPattern = annotationPattern; }
protected override void Dispose(bool disposing) { if (Pattern != null) { Marshal.ReleaseComObject(Pattern); this.Pattern = null; } base.Dispose(disposing); }
private AnnotationPattern(AutomationElement el, IUIAutomationAnnotationPattern pattern, bool cached) : base(el, cached) { Debug.Assert(pattern != null); this._pattern = pattern; }
public AnnotationPattern(A11yElement e, IUIAutomationAnnotationPattern p) : base(e, PatternType.UIA_AnnotationPatternId) { Pattern = p; PopulateProperties(); }
internal static AnnotationPattern Wrap( AutomationElement element, IUIAutomationAnnotationPattern annotationPattern) { return(new AnnotationPattern(element: element, annotationPattern: annotationPattern)); }