MenuItemAutomationPeer.GetPattern Method (PatternInterface)

 

Gets the control pattern for the MenuItem that is associated with this MenuItemAutomationPeer.

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

public override object GetPattern(
	PatternInterface patternInterface
)

Parameters

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

One of the enumeration values.

Return Value

Type: System.Object

An object that supports the control pattern if patternInterface is a supported value; otherwise, null.

If one of the following cases occurs, this method returns the current MenuItemAutomationPeer object.

If patternInterface equals PatternInterface.SynchronizedInput, this method returns an object that implements the ISynchronizedInputProvider interface.

.NET Framework
Available since 3.0
Return to top
Show: