RibbonQuickAccessToolBarAutomationPeer.GetPattern 方法

获取与该 RibbonQuickAccessToolBarAutomationPeer 关联的 RibbonQuickAccessToolBar 的控件模式。

命名空间:  Microsoft.Windows.Automation.Peers
程序集:  RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)

语法

声明
Public Overrides Function GetPattern ( _
    patternInterface As PatternInterface _
) As Object
public override Object GetPattern(
    PatternInterface patternInterface
)
public:
virtual Object^ GetPattern(
    PatternInterface patternInterface
) override
abstract GetPattern : 
        patternInterface:PatternInterface -> Object 
override GetPattern : 
        patternInterface:PatternInterface -> Object 
public override function GetPattern(
    patternInterface : PatternInterface
) : Object

参数

返回值

类型:System.Object
一个支持控件模式的对象(如果 patternInterface 为 ScrollItemContainerSynchronizedInput 值,或者如果 RibbonQuickAccessToolBar 具有溢出菜单中的项且 patternInterface 为 ExpandCollapse 值);否则为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

RibbonQuickAccessToolBarAutomationPeer 类

Microsoft.Windows.Automation.Peers 命名空间