RibbonAutomationPeer.GetPattern(PatternInterface) Method

Definition

Gets the control pattern for the Ribbon that is associated with the 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

Parameters

patternInterface
PatternInterface

A value enumeration that specifies the control pattern.

Returns

If the IsCollapsed property of the Ribbon is false and patternInterface is the ExpandCollapse, ItemContainer, Scroll, or Selection value, this method returns an object that supports the control pattern; otherwise, null.

Applies to