Partilhar via


Método RibbonTabDataAutomationPeer.GetPattern

Obtém o padrão de controle para o RibbonTab que está associado a RibbonTabDataAutomationPeer.

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

Sintaxe

'Declaração
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

Parâmetros

Valor de retorno

Tipo: System.Object
An object that supports the control pattern if patternInterface is ExpandCollapse, ItemContainer, Scroll, ScrollItem, SelectionItem, SynchronizedInput, or VirtualizedItem; Caso contrário, nulluma referência nula (Nothing no Visual Basic).

Segurança do .NET Framework

Consulte também

Referência

RibbonTabDataAutomationPeer Classe

Namespace Microsoft.Windows.Automation.Peers