ExpandCollapsePattern::Pattern Field

 

Identifies the ExpandCollapsePattern control pattern.

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

public:
static initonly AutomationPattern^ Pattern

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

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

In the following example, a ExpandCollapsePattern control pattern is obtained from a UI Automation element.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0

ExpandCollapsePattern Class
System.Windows.Automation Namespace
InvokePattern and ExpandCollapsePattern Menu Item Sample

Return to top
Show: