ButtonAutomationPeer.GetPattern(PatternInterface) 方法

定义

获取支持与此自动化对等关联的元素的指定控件模式的对象。

public:
 override System::Object ^ GetPattern(System::Windows::Automation::Peers::PatternInterface patternInterface);
public override object GetPattern(System.Windows.Automation.Peers.PatternInterface patternInterface);
override this.GetPattern : System.Windows.Automation.Peers.PatternInterface -> obj
Public Overrides Function GetPattern (patternInterface As PatternInterface) As Object

参数

patternInterface
PatternInterface

枚举中的值。

返回

如果 patternInterface 为 , Invoke此方法返回指针 this ,否则此方法返回 null

适用于

另请参阅