AutomationPeer.GetPattern(PatternInterface) 方法

定义

在派生类中重写时,获取与指定的 PatternInterface 关联的控件模式。When overridden in a derived class, gets the control pattern that is associated with the specified PatternInterface.

public:
 abstract System::Object ^ GetPattern(System::Windows::Automation::Peers::PatternInterface patternInterface);
public abstract object GetPattern (System.Windows.Automation.Peers.PatternInterface patternInterface);
abstract member GetPattern : System.Windows.Automation.Peers.PatternInterface -> obj
Public MustOverride Function GetPattern (patternInterface As PatternInterface) As Object

参数

patternInterface
PatternInterface

PatternInterface 枚举中的一个值。A value from the PatternInterface enumeration.

返回

Object

实现模式接口的对象;如果此同级不支持此接口,则为 nullThe object that implements the pattern interface; null if this peer does not support this interface.

适用于