GetPattern Method
Collapse the table of content
Expand the table of content

DataGridAutomationPeer.GetPattern Method (PatternInterface)


Returns the object that supports the specified control pattern of the element that is associated with this automation peer.

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

public override object GetPattern(
	PatternInterface patternInterface


Type: System.Windows.Automation.Peers.PatternInterface

A value in the enumeration.

Return Value

Type: System.Object

If patternInterface is PatternInterface.Grid, PatternInterface.Selection, or PatternInterface.Table, this method returns a this pointer; otherwise, this method returns null.

.NET Framework
Available since 4.0
Available since 2.0
Return to top
© 2016 Microsoft