ExpanderAutomationPeer.GetPattern Method (PatternInterface)

 

Gets the control pattern for the Expander that is associated with this ExpanderAutomationPeer.

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

public override object GetPattern(
	PatternInterface pattern
)

Parameters

pattern
Type: System.Windows.Automation.Peers.PatternInterface

One of the enumeration values.

Return Value

Type: System.Object

If pattern is ExpandCollapse, this method returns a reference to the current instance of the ExpanderAutomationPeer, otherwise this method calls the base implementation on UIElementAutomationPeer which returns null.

.NET Framework
Available since 3.0
Return to top
Show: