GridViewAutomationPeer.IViewAutomationPeer.GetPattern Method (PatternInterface)


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

This API supports the product infrastructure and is not intended to be used directly from your code.

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

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

object IViewAutomationPeer.GetPattern(
	PatternInterface patternInterface


Type: System.Windows.Automation.Peers.PatternInterface

A value in the enumeration.

Return Value

Type: System.Object

If patternInterface is PatternInterface.Grid or PatternInterface.Table, this method returns an object that implements the control pattern, otherwise this method returns null.

This member is an explicit interface member implementation. It can be used only when the GridViewAutomationPeer instance is cast to an IViewAutomationPeer interface.

.NET Framework
Available since 3.0
Return to top