System.Windows.Automation.AnnotationPattern.Wrap C# (CSharp) Method

Wrap() static private method

static private Wrap ( AutomationElement el, object pattern, bool cached ) : object
el AutomationElement
pattern object
cached bool
return object
        internal static object Wrap(AutomationElement el, object pattern, bool cached)
        {
            return (pattern == null) ? null : new AnnotationPattern(el, (UIAutomationClient.IUIAutomationAnnotationPattern)pattern, cached);
        }
AnnotationPattern