GridViewAutomationPeer.IViewAutomationPeer.GetPattern Method (PatternInterface)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

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
Show: