AutomationPeer.GetPattern(PatternInterface) AutomationPeer.GetPattern(PatternInterface) AutomationPeer.GetPattern(PatternInterface) AutomationPeer.GetPattern(PatternInterface) Method

Definition

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

public : Platform::Object GetPattern(PatternInterface patternInterface)
winrt::Windows::Foundation::IInspectable GetPattern(PatternInterface patternInterface) const;
public object GetPattern(PatternInterface patternInterface)
Public Function GetPattern(patternInterface As PatternInterface) As object

Parameters

patternInterface
PatternInterface PatternInterface

A value from the PatternInterface enumeration.

Returns

object object

The object that implements the pattern interface; null if the peer does not support this interface.