Pattern Field

WindowPattern.Pattern Field


Identifies the WindowPatterncontrol pattern.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

public static readonly AutomationPattern Pattern

This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent field in WindowPatternIdentifiers.

The pattern identifier is passed to methods such as GetCurrentPattern to retrieve the control pattern of interest from the specified AutomationElement.

In the following example, a WindowPatterncontrol pattern is obtained from an AutomationElement.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft