Share via


RibbonAutomationPeer.GetPattern Method

Gets the control pattern for the Ribbon that is associated with the RibbonAutomationPeer.

Namespace:  Microsoft.Windows.Automation.Peers
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: System.Object
If the IsCollapsed property of the Ribbon is false and patternInterface is the ExpandCollapse, ItemContainer, Scroll, or Selection value, this method returns an object that supports the control pattern; otherwise, nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

RibbonAutomationPeer Class

Microsoft.Windows.Automation.Peers Namespace