GroupItemAutomationPeer.GetPattern Method (PatternInterface)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the control pattern for the GroupItem that is associated with this GroupItemAutomationPeer.

Namespace:   System.Windows.Automation.Peers
Assembly:  PresentationFramework (in PresentationFramework.dll)

public override object GetPattern(
	PatternInterface patternInterface


Type: System.Windows.Automation.Peers.PatternInterface

One of the enumeration values.

Return Value

Type: System.Object

If pattern is ExpandCollapse and the GroupItemthat is associated with this GroupItemAutomationPeer contains an Expander, this method returns a reference to the current instance of the GroupItemAutomationPeer. Otherwise, this method calls the base implementation on UIElementAutomationPeer which returns null.

.NET Framework
Available since 4.5
Return to top