AutomationPeer.GetPattern(PatternInterface) Method

Definition

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

C#
public object GetPattern(PatternInterface patternInterface);

Parameters

patternInterface
PatternInterface

A value from the PatternInterface enumeration.

Returns

Object

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

Applies to

Produkt Versiounen
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6