RibbonAutomationPeer.GetPattern(PatternInterface) Metoda

Definicja

Pobiera wzorzec sterowania dla Ribbon elementu, który jest skojarzony z elementem 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

Parametry

patternInterface
PatternInterface

Wyliczenie wartości określające wzorzec kontrolki.

Zwraca

IsCollapsed Jeśli właściwość Ribbonfalse jest i patternInterface jest wartością ExpandCollapse, ItemContainer, ScrolllubSelection, ta metoda zwraca obiekt obsługujący wzorzec kontrolki; w przeciwnym razie null.

Dotyczy