共用方式為


RibbonComboBoxAutomationPeer.GetPattern(PatternInterface) 方法

定義

取得與 RibbonComboBoxAutomationPeer 相關聯之 RibbonComboBox 的控制項模式。

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

指定控制項模式的值列舉。

傳回

Object

如果 patternInterfaceExpandCollapse, ItemContainer, Scroll, SynchronizedInput, Transform, 或 Value 值則為支援控制項模式的物件,此方法會傳回支援控制項模式的物件,否則會傳回 null

適用於