RibbonGroupDataAutomationPeer.GetPattern 方法

获取与该 RibbonGroupDataAutomationPeer 关联的 RibbonGroup 的控件模式。

命名空间:  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 为 ExpandCollapseItemContainerScrollItemSynchronizedInput,则为支持该控件模式的对象;否则为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

RibbonGroupDataAutomationPeer 类

Microsoft.Windows.Automation.Peers 命名空间