获取与该 RibbonMenuButtonAutomationPeer 关联的 RibbonMenuButton 的控件模式。
命名空间: 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
参数
- patternInterface
类型:System.Windows.Automation.Peers.PatternInterface
指定控件模式的值枚举。
返回值
类型:System.Object
支持该控件模式的对象,如果 patternInterface 为 ExpandCollapse, Scroll、 Transform、 ItemContainer或 SynchronizedInput 值; 否则为 nullnull 引用(在 Visual Basic 中为 Nothing)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。