コード例 #1
0
 AnnotationPattern(
     AutomationElement element,
     IUIAutomationAnnotationPattern annotationPattern)
     : base(el: element)
 {
     this._annotationPattern = annotationPattern;
 }
コード例 #2
0
        protected override void Dispose(bool disposing)
        {
            if (Pattern != null)
            {
                Marshal.ReleaseComObject(Pattern);
                this.Pattern = null;
            }

            base.Dispose(disposing);
        }
コード例 #3
0
 private AnnotationPattern(AutomationElement el, IUIAutomationAnnotationPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }
コード例 #4
0
        public AnnotationPattern(A11yElement e, IUIAutomationAnnotationPattern p) : base(e, PatternType.UIA_AnnotationPatternId)
        {
            Pattern = p;

            PopulateProperties();
        }
コード例 #5
0
 internal static AnnotationPattern Wrap(
     AutomationElement element,
     IUIAutomationAnnotationPattern annotationPattern)
 {
     return(new AnnotationPattern(element: element, annotationPattern: annotationPattern));
 }