GridViewAutomationPeer.IViewAutomationPeer.GetPattern Metoda

Definicja

Pobiera wzorzec kontrolki skojarzony z określonym patternInterfaceelementem .

 virtual System::Object ^ System.Windows.Automation.Peers.IViewAutomationPeer.GetPattern(System::Windows::Automation::Peers::PatternInterface patternInterface) = System::Windows::Automation::Peers::IViewAutomationPeer::GetPattern;
object IViewAutomationPeer.GetPattern (System.Windows.Automation.Peers.PatternInterface patternInterface);
abstract member System.Windows.Automation.Peers.IViewAutomationPeer.GetPattern : System.Windows.Automation.Peers.PatternInterface -> obj
override this.System.Windows.Automation.Peers.IViewAutomationPeer.GetPattern : System.Windows.Automation.Peers.PatternInterface -> obj
Function GetPattern (patternInterface As PatternInterface) As Object Implements IViewAutomationPeer.GetPattern

Parametry

patternInterface
PatternInterface

Wartość w wyliczenie.

Zwraca

Object

Jeśli patternInterface metoda jest lub Grid Table, ta metoda zwraca obiekt, który implementuje wzorzec kontrolki, w przeciwnym razie ta metoda zwraca nullwartość .

Implementuje

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy GridViewAutomationPeer wystąpienie jest rzutowanie do interfejsu IViewAutomationPeer .

Dotyczy