IViewAutomationPeer.GetPattern Method (PatternInterface)


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

Gets the control pattern that is associated with the specified patternInterface.

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

object GetPattern(
	PatternInterface patternInterface


Type: System.Windows.Automation.Peers.PatternInterface

A value in the enumeration.

Return Value

Type: System.Object

Return the object that implements the control pattern. If this method returns null, the return value from GetPattern is used.

.NET Framework
Available since 3.0
Return to top