Share via


RibbonAutomationPeer.GetPattern(PatternInterface) 方法

定义

获取与 Ribbon 关联的 RibbonAutomationPeer 的控件模式。

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

指定控件模式的值枚举。

返回

如果 IsCollapsedRibbon 属性为 false,并且 patternInterfaceExpandCollapseItemContainerScrollSelection 值,则此方法将返回支持此控件模式的对象;反之返回 null

适用于